I built an image gallery using bootstrap. I need to create a feature where users can click on an image and be redirected to a new page showing the same image on a bootstrap carousel slider.
To achieve this, I want to implement a dynamic onclick event that passes the image id via URL from one page to another, ensuring the image appears on the slider when the new page loads.
If anyone can guide me on how to set this up, I would greatly appreciate it.
Thank you!