Added movies page to actors, entities and tags.

This commit is contained in:
2024-08-22 06:23:41 +02:00
parent a903c7f31f
commit c38206bbbf
12 changed files with 229 additions and 83 deletions

View File

@@ -1,7 +1,7 @@
import { match } from 'path-to-regexp';
// import { resolveRoute } from 'vike/routing'; // eslint-disable-line import/extensions
const path = '/actor/:actorId/:actorSlug?/:scope?/:page?';
const path = '/actor/:actorId/:actorSlug?/:domain(scenes|movies)?/:scope?/:page?';
const urlMatch = match(path, { decode: decodeURIComponent });
export default (pageContext) => {
@@ -12,6 +12,7 @@ export default (pageContext) => {
routeParams: {
actorId: matched.params.actorId,
actorSlug: matched.params.actorSlug,
domain: matched.params.domain || 'scenes',
scope: matched.params.scope || 'latest',
page: matched.params.page || '1',
path,