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?

Hi,

Thank you for your feedback, we are aware of this bug and it has been added to the RoadMap and will be fixed in the next updates.

1 Like

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