Client:Routes: Added public route media viewer
This commit is contained in:
parent
794dde73ec
commit
b342219053
@ -362,6 +362,14 @@ const ClientRoutes = [
|
||||
</PublicRoute>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: "media/view/:id",
|
||||
element: (
|
||||
<PublicRoute>
|
||||
<FilesView />
|
||||
</PublicRoute>
|
||||
),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -32,7 +32,10 @@ export const PublicRoute = (props: PublicRouteProps) => {
|
||||
return children;
|
||||
}
|
||||
|
||||
if (location.pathname === "/rooms/share") {
|
||||
if (
|
||||
location.pathname === "/rooms/share" ||
|
||||
location.pathname.includes("/rooms/share/media/view/")
|
||||
) {
|
||||
return children;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user