Moed pages/scene to pages/scenes/@sceneId for consistency.

This commit is contained in:
2026-07-13 21:25:45 +02:00
parent 05e3cf811a
commit 378f81efe4
8 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { match } from 'path-to-regexp';
const path = '/scene/revs/:sceneId/:slug?';
const urlMatch = match(path, { decode: decodeURIComponent });
export default (pageContext) => {
const matched = urlMatch(pageContext.urlPathname);
if (matched) {
return {
routeParams: {
sceneId: matched.params.sceneId,
domain: 'scenes',
},
};
}
return false;
};