FIX: published pages couldn't be routed from inside discourse (#9569)

This will allow to post a link to published page in a post. Before this, users clicking this link would have seen a 404.

ATM /pub is server sider only.
This commit is contained in:
Joffrey JAFFEUX
2020-04-28 16:37:56 +02:00
committed by GitHub
parent c1cc2f2a05
commit 4b57eb7049

View File

@@ -28,7 +28,8 @@ const SERVER_SIDE_ONLY = [
/\.json$/,
/^\/admin\/upgrade$/,
/^\/logs($|\/)/,
/^\/admin\/logs\/watched_words\/action\/[^\/]+\/download$/
/^\/admin\/logs\/watched_words\/action\/[^\/]+\/download$/,
/^\/pub\//
];
export function rewritePath(path) {