mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
fix: Share links containing share links can lead to 'Not found' pages
This commit is contained in:
1 parent
62b4f520de
commit
4f40c64101
1 file changed
+3
-1
@@ -160,7 +160,9 @@ function Editor(props: Props, ref: React.RefObject<SharedEditor> | null) {
|
||||
}
|
||||
}
|
||||
|
||||
if (shareId) {
|
||||
// If we're navigating to an internal document link then prepend the
|
||||
// share route to the URL so that the document is loaded in context
|
||||
if (shareId && navigateTo.includes("/doc/")) {
|
||||
navigateTo = sharedDocumentPath(shareId, navigateTo);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user