GH-989 add boards to shared component link (#1023)

* add boards to shared component link

* use Utils.getFronendBaseURL
This commit is contained in:
Scott Bishel 2021-08-18 11:44:21 -06:00 committed by GitHub
parent 727641f3db
commit 663ff4c8da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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