Added actor revision overviews to actor and user pages.

This commit is contained in:
2024-10-23 01:28:54 +02:00
parent d0cf9bf5d0
commit 05bd7b703d
21 changed files with 424 additions and 219 deletions

View File

@@ -1,7 +1,7 @@
import { redirect } from 'vike/abort'; /* eslint-disable-line import/extensions */
import { match } from 'path-to-regexp';
const path = '/user/:username/:domain?';
const path = '/user/:username/:section?/:domain?';
const urlMatch = match(path, { decode: decodeURIComponent });
export default (pageContext) => {
@@ -15,7 +15,8 @@ export default (pageContext) => {
return {
routeParams: {
username: matched.params.username,
domain: matched.params.domain || 'stashes',
section: matched.params.section || 'stashes',
domain: matched.params.domain || 'scenes',
},
};
}