I've built a website using no front-end framework, but html/css and javascript only. I have a page portfolio.html with two google charts. My wish is to have all urls of the format
www.mydomain.se/portfolio/param1=something&something&something/param2=something&something&something...
(or similar) display the portfolio.html page. The charts will be served with different data depending on the url from an express backend. I know how to achieve this using a frontend framework such as Vue.js but am wondering how to achieve this using only html and javascript.
So how do I make all requests to www.mydomain.se/portfolio/param1=something&something&something/param2=something&something&something... (or similar)
show my portfolio.html page with different data using only html and javascript?
I have looked around and know that you can change the url after loading a page to make it look like a different page is served for multiple urls but that's not really what I want to do.
Copyright Notice:Content Author:「Emelie」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57176188/how-to-load-the-same-html-but-with-different-data-and-with-different-urls-using