Skip to content

Commit

Permalink
Fix page registeredServices authorized error (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
baixinsui committed Sep 10, 2024
1 parent e0ed65c commit 5467b0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/content/login/Logout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
createServicePageRoute,
homePageRoute,
orderPageRoute,
registeredServicesPageRoute,
registerPageRoute,
} from '../../utils/constants';

Expand All @@ -26,6 +27,9 @@ function Logout(): React.JSX.Element {
// Create service URL contains dynamic url. So, redirect back to the home page.
return homePageRoute;
}
if (window.location.pathname.startsWith(registeredServicesPageRoute)) {
return registeredServicesPageRoute;
}
if (window.location.pathname.startsWith(registerPageRoute)) {
return registerPageRoute;
}
Expand Down

0 comments on commit 5467b0e

Please sign in to comment.