Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import App from './App';
import Blog from './Blog';
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.

}

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
Expand Down