Write something in href without affecting the path of html file
I'm new in web development and creating a web site. There I get data from the Movie Database API, especially the id. Now I want if you click on a movie, another page should load and the Details are displayed. Currently I am passing the ID this way:
MovieDetails.html#{id}
Is there a better way to pass the id other than localstorage?
Is there a way to do something like this MovieDetails.html-{id}