update share url (#1062)

* update share url

* add leading slash
This commit is contained in:
Scott Bishel 2021-08-24 14:07:15 -06:00 committed by GitHub
parent 5f8e08b79e
commit a3fabc45a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,7 @@ const ShareBoardComponent = React.memo((props: Props): JSX.Element => {
shareUrl.searchParams.set('r', readToken)
if (match.params.workspaceId) {
const newPath = generatePath(':basename/workspace/:workspaceId/shared/:boardId/:viewId', {
basename: Utils.getFrontendBaseURL(),
const newPath = generatePath('/plugins/focalboard/workspace/:workspaceId/shared/:boardId/:viewId', {
boardId: match.params.boardId,
viewId: match.params.viewId,
workspaceId: match.params.workspaceId,