Skip to content

Commit

Permalink
fix error with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Nov 15, 2023
1 parent 65766d4 commit bce9e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/routes/AuthenticatedOnly.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function AuthenticatedOnly() {

// Custom logic to redirect from Rooms page to join page if the user isn't signed in
if (!currentUser.signed_in && roomsMatch) {
return <Navigate to={`${location.pathname}/join`} />;
return <Navigate to={`${roomsMatch.pathnameBase}/join`} />;
}

if (currentUser.signed_in && currentUser.isSuperAdmin && !superAdminMatch) {
Expand Down

0 comments on commit bce9e6e

Please sign in to comment.