mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
Add graceful redirect from old share paths
This commit is contained in:
1 parent
0f072acfd9
commit
f0bf60eb40
1 file changed
+6
@@ -30,6 +30,12 @@ export default function Routes() {
|
||||
<Switch>
|
||||
<Route exact path="/" component={SharedDocument} />
|
||||
<Route exact path={`/doc/${slug}`} component={SharedDocument} />
|
||||
<Redirect exact from="/s/:shareId" to="/" />
|
||||
<Redirect
|
||||
exact
|
||||
from={`/s/:shareId/doc/${slug}`}
|
||||
to={`/doc/${slug}`}
|
||||
/>
|
||||
</Switch>
|
||||
) : (
|
||||
<Switch>
|
||||
|
||||
Reference in new issue
Block a user