WixLocation query

I know tgat using this link https://domain.comanimals/mammals/elephant?species=african-elephant I’ll get the query:

{‘species’:’African-elephant’}

Is there any way to add more data to this object let’s say age: 10 color: grey

I’ll assume you have stored the above to a variable, say animal .

Does the following then work for you:

animal.age = 10;
animal.color = “grey”;

?

Carlos, you can, just by adding it to the query-string, like …&age=10&color=grey

Just a word of caution: you cannot reset the querystring inside Wix and every, EVERY, link (image, button, menu entry, etc) from the moment that there is one, will carry the querystring.
E.g. your menu, where you would have a normal link to “/home”, will now be "/home/elefant?species=african-elefant&age=10&color=grey.

It´s anoying, yes, and can lead to unexpected results.