Unverified Commit 36cdc6b3 authored by Progi1984's avatar Progi1984 Committed by GitHub
Browse files

Merge pull request #26410 from alexandrebrubeyonds/patch-4

Backport Fix Simple anchors do not work #26380
parents 11af2250 094111dd
......@@ -198,10 +198,12 @@ $(document).ready(() => {
);
});
window.addEventListener('popstate', (e) => {
const {state} = e;
window.location.href = state && state.current_url ? state.current_url : history;
});
if ($(prestashop.themeSelectors.listing.list).length) {
window.addEventListener('popstate', (e) => {
const {state} = e;
window.location.href = state && state.current_url ? state.current_url : history;
});
}
$('body').on(
'change',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment