"place_id=any" is stripped from URL when you switch views on obs page

Platform (Android, iOS, Website): website

Browser, if a website issue (Firefox, Chrome, etc) : Vivaldi

URLs (aka web addresses) of any relevant observations or pages: https://www.inaturalist.org/observations?subview=table&user_id=kildor&verifiable=any

Description of problem (please provide a set of steps we can use to replicate the issue, and make as many as you need.):

Step 1: Open “my observation” from main menu

Step 2: Look to the URL, it contains place_id=any.

Step 3: Switch view from observations

Step 4: Look to the URL, it do not contain place_id=any anymore.

Step 5: Reload page

Step 6: The form now has default place so observation set is different.

Now, if you remove default place from filter, place_id=any will not be added to the URL. Also, if you click on any observations link from species card, it will automatically add default place.

PS: I suppose the problem is appeared after this commit.

Can you please provide more specifics here? I’m not able to replicate from these instructions.

I set default search place as Russia:


So, when I open Explore page I get https://www.inaturalist.org/observations?place_id=7161.

Now I delete the searh place to get observations from all world, switch to Species view and see correct list:

I click to Monarch observations link to view “340,101 observations”, and get no observations, because Russia is set againg as search place, which is not what I want. I have to manually remove it.

Also. When I click to “Your observation”, I get https://www.inaturalist.org/observations?place_id=any&user_id=kildor&verifiable=any link. When I change to “Species”, I get https://www.inaturalist.org/observations?subview=map&user_id=kildor&verifiable=any&view=species (4161 species). Next, when I reload the page, I get 4096 species and different link: https://www.inaturalist.org/observations?place_id=7161&subview=map&user_id=kildor&verifiable=any&view=species

I think the problem is that “any” is not a valid place identifier. You can replace it with “world”, or “earth”, or (literally) “whatever” and it will always default to The World. However, AFAICS, there’s no numeric place identifier for The World.

Usually, when a place is selected from the list in the filter dialog, its place_id is added to the url query parameters. Once this is done, all the links on the Explore page will also automatically have that parameter added to them, thus making the place “sticky”. However, since you cannot explicitly select a place filter for The World, a place_id is never added.

May be, but when you click to “Your observations” from top menu, there will be place-id=any in URL.