GH-989 add boards to shared component link (#1023)
* add boards to shared component link * use Utils.getFronendBaseURL
This commit is contained in:
parent
727641f3db
commit
663ff4c8da
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ const ShareBoardComponent = React.memo((props: Props): JSX.Element => {
|
||||||
shareUrl.searchParams.set('r', readToken)
|
shareUrl.searchParams.set('r', readToken)
|
||||||
|
|
||||||
if (match.params.workspaceId) {
|
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,
|
boardId: match.params.boardId,
|
||||||
viewId: match.params.viewId,
|
viewId: match.params.viewId,
|
||||||
workspaceId: match.params.workspaceId,
|
workspaceId: match.params.workspaceId,
|
||||||
|
|
Loading…
Reference in a new issue