Unverified Commit 094111dd authored by alexandrebrubeyonds's avatar alexandrebrubeyonds Committed by GitHub
Browse files

Fix Simple anchors do not work

parent 75906b6c
......@@ -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