Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Changing only the anchor for the URL should not reload the page #2963

Closed
gulkily opened this issue Aug 4, 2016 · 5 comments
Closed

Changing only the anchor for the URL should not reload the page #2963

gulkily opened this issue Aug 4, 2016 · 5 comments
Labels
bug polish Nice to have — usually related to front-end/visual tasks. stale

Comments

@gulkily
Copy link

gulkily commented Aug 4, 2016

Did you search for similar issues before submitting this one?
Yes

Describe the issue you encountered:
When I am at a URL with an anchor (#anchor) and I change the anchor text only and press Enter, the entire page reloads instead of making the appropriate changes on the page.

Expected behavior:
The browser should try to jump to the anchor's location on the same page instance and trigger the appropriate JS events.

  • Platform (Win7, 8, 10? macOS? Linux distro?): macOS
  • Brave Version: 0.11.2
  • Steps to reproduce:
    1. Open a page with anchors or JS events that respond to anchor changes. For example, I used the following Gmail URL, which should work for most with a Gmail account: https://mail.google.com/mail/u/0/#search/in%3Ainbox/p2
    2. Change the anchor in the URL by typing into the address bar. In my example, I focused the address bar and changed "p2" to "p3", which should flip to the third page of the results.

Expected: In Firefox, what happens is the same thing as if I had clicked the ">" (next page) button in the search results. It just flips to the next page.

Actual: The entire page reloads, and then goes to the appropriate page of results, since the anchor is preserved

@bridiver
Copy link
Collaborator

bridiver commented Sep 1, 2016

I'm not able to replicate this on 0.11.5 or 0.11.6. I tried gmail and also http://www.w3schools.com/html/tryit.asp?filename=tryhtml_links_bookmark

@gulkily
Copy link
Author

gulkily commented Sep 1, 2016

Try going to http://www.example.com/ and then changing the URL to http://www.example.com/#test. I see the page refresh when I do this.

Here is what it looks like in Gmail:
2963 mov mp4 m4v

@bridiver
Copy link
Collaborator

bridiver commented Sep 1, 2016

oh, you are typing the new url in the urlbar? I guess I misunderstood the replication steps. Can you clarify them in the original post? I can replicate if I type the url in the urlbar

@gulkily
Copy link
Author

gulkily commented Sep 2, 2016

Thanks for the feedback, @bridiver. I updated the steps to reproduce to be more clear.

@bsclifton bsclifton added polish Nice to have — usually related to front-end/visual tasks. bug/good-first-bug labels Oct 24, 2016
@luixxiul luixxiul added the bug label Jun 4, 2017
@bsclifton bsclifton added this to the Triage Backlog milestone Nov 27, 2017
@MargarytaChepiga
Copy link
Contributor

I tried to reproduce this on Windows 10, but it works as expected there.

@NejcZdovc NejcZdovc added the help wanted The PR/issue opener needs help to complete/report the task. label May 7, 2018
@bsclifton bsclifton added stale and removed bug/good-first-bug help wanted The PR/issue opener needs help to complete/report the task. labels Aug 30, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Aug 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug polish Nice to have — usually related to front-end/visual tasks. stale
Projects
None yet
Development

No branches or pull requests

6 participants