Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dupes in browser history #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

TTalex
Copy link

@TTalex TTalex commented Apr 2, 2023

Browsing on the https://www.multi.coop website seems to duplicate every page in browser history. This breaks the intuitive nature of the browser's back button, where users have to press multiple times to go back one page.

For example, loading the website and clicking once on the "Notre offre de service" button creates the following history:
oneclic

Looking at the network queries, it looks like remote markdown content is also requested twice on page load.
oneclic

This PR fixes the duplicates in history by removing an obsolete (?) updateUrl call when mouting.

I'm not too familiar with the tech stack, but it looks like the site behaves the same without this line.

However, this PR doesn't fix the multiple calls to remote markdown content. So this might be a band-aid on a deeper issue ?

@netlify
Copy link

netlify bot commented Apr 2, 2023

👷 Deploy request for multi-website pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6b46dd5

@netlify
Copy link

netlify bot commented Apr 2, 2023

👷 Deploy request for multi-site-preprod-core-texts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6b46dd5

@netlify
Copy link

netlify bot commented Apr 2, 2023

👷 Deploy request for multi-site-app-test pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6b46dd5

@netlify
Copy link

netlify bot commented Apr 2, 2023

👷 Deploy request for multi-site-preprod pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6b46dd5

@netlify
Copy link

netlify bot commented Apr 2, 2023

👷 Deploy request for datami-documentation pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6b46dd5

@netlify
Copy link

netlify bot commented Apr 2, 2023

👷 Deploy request for datami pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 6b46dd5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant