Skip to content

Commit

Permalink
Last fix for nav routers/path issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fwedwicc committed Aug 5, 2024
1 parent 5e30d02 commit ac3b01e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const Navbar = () => {

// To get the current path/loc
const getPageName = () => {
switch (/fmUI/location.pathname) {
const path = location.pathname;
const fullPath = `/fmUI/${path}`;

switch (fullPath) {
// Components
case '/fmUI/components/alert':
return 'Alerts';
Expand Down

0 comments on commit ac3b01e

Please sign in to comment.