Region not deleted from URL when location field is cleared

The URL is not updated correctly when a location search is cleared: the Region key remains in the URL. I am using Google Maps.

For instance, when I first search for Amsterdam I get results as expected:

while this is the url (correct):

post_type=hp_listing&latitude=52.3675734&longitude=4.9041389&_region=ChIJVXealLU_xkcRja_At0z9AGY&_category=&s=&location=Amsterdam&label=

.
.
Then when I delete Amsterdam and use a seach term like chocolate (which are not present in Amsterdam, but are in other cities) I get no results:


.
.
because the url still contains the Region key (please note that latitude, longitude and location have been cleared correctly):

post_type=hp_listing&latitude=&longitude=&_region=ChIJVXealLU_xkcRja_At0z9AGY&_category=&s=chocolate&location=&label=

.
.
Removing the Region key from the URL (or if I would have searched for chocolate from the beginning) will give me the results of chocolate listings in other cities:

Is this a bug or is Google Maps not installed correctly?

3 posts were merged into an existing topic: If checkbox field has many options, page jumps down on check

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.