Bug Description
🐛 Bug Description
In src/App.jsx, the useEffect redirect logic appends
window.location.hash to the new URL, which can cause double
hash URLs like /#/dashboard#/dashboard if hash is already present.
📍 Location
src/App.jsx — Line ~13-17
🔁 Steps to Reproduce
- Open app with a URL containing hash e.g.
/#/dashboard
- useEffect fires and appends hash again
- URL becomes
/#/dashboard#/dashboard ❌
✅ Expected Behavior
Should redirect cleanly without duplicating hash fragments.
❌ Actual Behavior
Can produce malformed URLs with double hash fragments.
💡 Fix
// ❌ Current broken code:
window.location.replace('/#' + path + window.location.hash);
// ✅ Fixed code:
window.location.replace('/#' + path);
📁 File
src/App.jsx
Bug Description
🐛 Bug Description
In
src/App.jsx, theuseEffectredirect logic appendswindow.location.hashto the new URL, which can cause doublehash URLs like
/#/dashboard#/dashboardif hash is already present.📍 Location
src/App.jsx— Line ~13-17🔁 Steps to Reproduce
/#/dashboard/#/dashboard#/dashboard❌✅ Expected Behavior
Should redirect cleanly without duplicating hash fragments.
❌ Actual Behavior
Can produce malformed URLs with double hash fragments.
💡 Fix
📁 File
src/App.jsx