ec2instances.info icon indicating copy to clipboard operation
ec2instances.info copied to clipboard

Reloading the webpage always fills in the "Search:" field

Open atomsymbol opened this issue 6 years ago • 3 comments

Hello.

I have input "a." into the "Search:" field. Since then, every time I reload the page, or load the page in a new tab, it ends up changing the URL from "https://www.ec2instances.info/" to "https://www.ec2instances.info/?filter=a.&region=eu-central-1".

Please take a look into this issue. Thanks.

atomsymbol avatar Apr 01 '19 17:04 atomsymbol

Persisting the search term, region, pricing duration, and a few other fields is intentional to make it easier to reuse the same view. For legacy reasons they get saved to a cookie and updated in the URL, which is a little unusual. What would you prefer the behavior to be?

powdahound avatar Apr 07 '19 13:04 powdahound

Hi. Steps to reproduce the issue I am experiencing:

  • Go to https://www.ec2instances.info/?filter=m5a.2xlarge
  • The search field is displaying m5a.2xlarge
  • In "Search:" delete .2xlarge to yield m5a
    • Optional: then close the current browser tab
  • In a new browser tab: load https://www.ec2instances.info
  • https://www.ec2instances.info is redirected to https://www.ec2instances.info/?filter=m5a.2xlarge
    • Expected outcome: it is redirected to https://www.ec2instances.info/?filter=m5a because m5a is the most recent value of the "Search:" field

ghost avatar Apr 07 '19 13:04 ghost

Don't have time to work on this now but thank you for those steps which will certainly make it easier to fix.

powdahound avatar Apr 08 '19 13:04 powdahound