Added pagination and total to revisions.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { match } from 'path-to-regexp';
|
||||
import { redirect } from 'vike/abort';
|
||||
|
||||
const path = '/user/:username/:section?/:domain?';
|
||||
const path = '/user/:username/:section?/:domain?/:page?';
|
||||
const urlMatch = match(path, { decode: decodeURIComponent });
|
||||
|
||||
export default (pageContext) => {
|
||||
@@ -18,6 +18,8 @@ export default (pageContext) => {
|
||||
username: matched.params.username,
|
||||
section: matched.params.section || '',
|
||||
domain: matched.params.domain || '',
|
||||
page: matched.params.page || '1',
|
||||
path,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user