Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Open up your developer console and see if it's failing to fetch the resource. In which case you'll need to ensure the path is correct. Commented Jul 8, 2020 at 21:01
  • No, it loads the right page but it doesn't change my URL so I cannot save on my library list About page Commented Jul 8, 2020 at 21:18
  • If you want to dynamically change the url like how you're describing, you need to use history.pushState Commented Jul 8, 2020 at 21:33
  • Ok, if I use history.pushState it works but the problem is, if I copy the URL and paste it in a new windows, it only opens my HTML without keeping the Javascript or CSS because they are linked only in the index.html Commented Jul 8, 2020 at 21:55
  • Understandably so. Ideally you could use a hash code instead. Then on page load you just load whatever the hash is. Commented Jul 8, 2020 at 21:57