Only allow routes without workspace prefix if you are in non-plugin mode (#1786)

This commit is contained in:
Jesús Espino 2021-11-10 18:18:02 +01:00 committed by GitHub
parent 3ede6df028
commit 537e015c72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,6 +218,7 @@ const App = React.memo((): JSX.Element => {
<WelcomePage/> <WelcomePage/>
</Route> </Route>
{!Utils.isFocalboardPlugin() &&
<Route <Route
path='/:boardId?/:viewId?/:cardId?' path='/:boardId?/:viewId?/:cardId?'
render={({match: {params: {boardId, viewId, cardId}}}) => { render={({match: {params: {boardId, viewId, cardId}}}) => {
@ -242,7 +243,7 @@ const App = React.memo((): JSX.Element => {
return null return null
}} }}
/> />}
</Switch> </Switch>
</div> </div>
</div> </div>