URL ends with #
if a URL ends with '#'(like "http://www.example.com/diamond-diva/p/ds444444#") and press Enter key in addressbar then it does not send request but if i press F5 then it reloads the page. What it is behaving like this ?
Izabrano rješenje
The # character refers to an internal location in a page. For example, when you see a table of contents in an article, those entries may go to different locations in the page by adding # and a label after it. If you mouse over the links below the video in the following article, you'll see what I mean: Where to find and manage downloaded files in Firefox.
So... if you have that page open already, and you press Enter on that URL, instead of reloading the page, Firefox will simply try to go to that label in the page. When there is # without anything after it, the result is that nothing happens because that's not a valid label name.
You might be wondering why you have a URL with a useless # at the end of it. The typical scenario is that you click a link that was supposed to run a script. The link didn't have a "real" URL, just # as a backstop to prevent you from accidentally leaving the page. Carefully written scripts usually cancel the link so you never see the URL with the useless # at the end, but many of them don't.
There. Way more than you wanted to know.
Pročitajte ovaj odgovor sa objašnjenjem 👍 0All Replies (4)
Odabrano rješenje
The # character refers to an internal location in a page. For example, when you see a table of contents in an article, those entries may go to different locations in the page by adding # and a label after it. If you mouse over the links below the video in the following article, you'll see what I mean: Where to find and manage downloaded files in Firefox.
So... if you have that page open already, and you press Enter on that URL, instead of reloading the page, Firefox will simply try to go to that label in the page. When there is # without anything after it, the result is that nothing happens because that's not a valid label name.
You might be wondering why you have a URL with a useless # at the end of it. The typical scenario is that you click a link that was supposed to run a script. The link didn't have a "real" URL, just # as a backstop to prevent you from accidentally leaving the page. Carefully written scripts usually cancel the link so you never see the URL with the useless # at the end, but many of them don't.
There. Way more than you wanted to know.
Thanks for replaying! Then why 'F5' key reloads the page whereas 'Enter' key does nothing on the same URL("http://www.example.com/diamond-diva/p/ds444444#") ?
The F5 key (or Ctrl+r) forces a reload. When you press Enter on a URL that has a #label, Firefox follow the same logic as clicking a link in the page, which is, if that page already is open in that tab, go to the #label.
You need to make sure that you aren't blocking JavaScript.
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
- Press and hold Shift and left-click the Reload button.
- Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
- Press "Command + Shift + R" (MAC)
Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
- Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.