Skip to content

Conversation

@MalikMAlna
Copy link

@MalikMAlna MalikMAlna commented Dec 23, 2024

Ran into a similar issue where I work with the URL of the page having a superfluous #/ at the end of it. This change should remove that before the page is rendered.

Ran into a similar issue where I work with the URL of the page has a superfluous #/ at the end of it. This change should remove that before the page is rendered.
@MalikMAlna MalikMAlna changed the title remove superfluous #/ at the end of link. remove superfluous #/ at the end of site URL Dec 23, 2024
import reportWebVitals from './reportWebVitals';

if (window.location.hash.startsWith('#/')) {
window.location.replace(window.location.toString().replace('#/', ''));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, it will be appended and will result in a loop.

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.

2 participants