Permanently redirect to /s/... for share links (#4067)
This commit is contained in:
@@ -5,6 +5,7 @@ import Collection from "~/models/Collection";
|
||||
import Document from "~/models/Document";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import { NavigationNode } from "~/types";
|
||||
import { sharedDocumentPath } from "~/utils/routeHelpers";
|
||||
import Disclosure from "./Disclosure";
|
||||
import SidebarLink from "./SidebarLink";
|
||||
|
||||
@@ -92,7 +93,7 @@ function DocumentLink(
|
||||
<>
|
||||
<SidebarLink
|
||||
to={{
|
||||
pathname: `/share/${shareId}${node.url}`,
|
||||
pathname: sharedDocumentPath(shareId, node.url),
|
||||
state: {
|
||||
title: node.title,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user