I have a site where I am triggering a modal from a set of links. Is there a way to pass a reference of the link itself to the modal?
My current implementation is available here: http://138.197.123.25/ the left sidebar links will simply launch a modal window and ask for location; when they choose a location for that specific item.
The problem is if someone clicks on the side menu for Party Packages
, then chooses say San Diego
from the modal choice, they are taken to http://138.197.123.25/location/san-diego-rentals/
, but what I would like is for them to go directly to the item and location they chose, so in this example, I would like them to go to directly to http://138.197.123.25/location/san-diego-rentals/party-packages/
.
I am not sure how to pass a reference of the link that is clicked to launch the modal, so I can add the type of item to the location and build the final URL.