diff --git a/app/server/lib/AppEndpoint.ts b/app/server/lib/AppEndpoint.ts index 937303c7..4f40ada7 100644 --- a/app/server/lib/AppEndpoint.ts +++ b/app/server/lib/AppEndpoint.ts @@ -212,6 +212,6 @@ export function attachAppEndpoint(options: AttachOptions): void { // The * is a wildcard in express 4, rather than a regex symbol. // See https://expressjs.com/en/guide/routing.html app.get('/doc/:urlId([^/]+):remainder(*)', ...docMiddleware, docHandler); - app.get('/:urlId([^/]{12,})(/:slug([^/]+):remainder(*))?', + app.get('/:urlId([^-/]{12,})(/:slug([^/]+):remainder(*))?', ...docMiddleware, docHandler); }