Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6850261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:06:08+00:00 2026-05-27T01:06:08+00:00

On my website I have some javascript which changes the URL by adding #

  • 0

On my website I have some javascript which changes the URL by adding # and some information as the user takes some action.

for example:

www.mysite.com/index.html#shoes=23,books=12
www.mysite.com/index.html#shoes=24,books=12

The website works brilliantly but the back button appears to be broken
When the user presses back I don’t want to move back to my previous values on the url with the hash but I really want to go back, like moving away from the page.

Can somebody help ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:06:09+00:00Added an answer on May 27, 2026 at 1:06 am

    This is a feature of the browser: visiting a new URL with a hash is a separate history item. You will not be able to solve this without changing how you handle URLs. From a UI perspective, this seriously makes sense. Imagine if gmail didn’t do this (like in the old days). The user experience would be significantly diminished.

    Unless this breaks your app, I suggest you leave it as it is; your users will thank you for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some website which requires a logon and shows sensitive information. The person
I have some javascript which runs a timer that animates something on the website.
I have some xml files that contain text, which are displayed on my website.
I have a drop box which is populated by information from a database. Some
I am integrating PayPal in my website But I have some issues in it.
We have some files on our website that users of our software can download.
I have some pages on my public website that display charts generated by ASP.NET
I have some problem with my cfml website. I have used the below code
I have some static images in a folder on my IIS 6-based website that
Does anyone have some guidelines or links to articles when designing a website that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.