Jump to content

Dynamic URL Based on Local/Session Storage Value

Go to solution Solved by SanTrapGamer,

Recommended Posts

Posted

Site URL: https://www.metagamevgc.com

I have a page that I'm working on currently that pulls a table of data. Within the table one column is set with hyperlinks. Please reference the link below for the table of information that I have:

https://www.metagamevgc.com/javascript-test-page

I have created a "details" page that is expected to pull from an API based on the user's selection on the link above; however, I'm also wanting to have the URL and Page Title dynamically reflect the user's selection. For example, I'd want the Page Title to look something like "MetaGame | Bulbasaur" with a URL of https://www.metagamevgc.com/javascript-test-page/bulbasuar if the user selected Bulbasaur from the initial link provided.


So, ideally, there would be two pages created in total. One page for the master list. One page for further details on each of the options listed in the master list. Please let me know if you have any other questions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.