Fixed pagination and scene poster overflowing page on small screens. Fixed back reload interfering with tag page hashes.
This commit is contained in:
@@ -16,8 +16,10 @@ async function onRenderClient(pageContext) {
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window.addEventListener('popstate', () => {
|
||||
// force reload when back button is used
|
||||
window.location.reload();
|
||||
if (!window.location.hash) {
|
||||
// force reload when back button is used
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user