Good day to all!
I have a question. There is a slider. I want him to call the address of the image in the address bar. When adding
location.hash = url
it adds the full address.
It turns out:
http://example.ru/news/id/1410#http://examle.ru/pictures/o/621/39.jpg
And I want it to be something like:
Update
More precisely, the address was changed to the address of the picture, and when it was closed, the original address was returned.