Only allow routes without workspace prefix if you are in non-plugin mode (#1786)
This commit is contained in:
parent
3ede6df028
commit
537e015c72
1 changed files with 22 additions and 21 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue