4 ms·
Oh yeah that's annoying. And when you close it they push a new history state so if you hit back the modal opens again. Personally I think modals shouldn't be a
by dawnerd 10y ago
Oh yeah that's annoying. And when you close it they push a new history state so if you hit back the modal opens again. Personally I think modals shouldn't be a URL. If you want it to be a permalink then make it a standalone page.
- vertex-four 10y agoIMHO, it should pushState a proper URL to the image, then history.back() to close it.