Bugfix: pagination failed because Crossroads routes with higher priority are added last

This commit is contained in:
djmaze 2021-02-10 13:12:27 +01:00
parent 354337f174
commit e3376c244e

View file

@ -147,10 +147,9 @@ export class MailBoxUserScreen extends AbstractScreen {
[decodeURI(request ? pString(vals[0]) : getFolderInboxName()), 1, decodeURI(pString(vals[1]))];
return [
[/^([a-zA-Z0-9~]+)\/p([1-9][0-9]*)\/(.+)\/?$/, { 'normalize_': fNormS }],
[/^([a-zA-Z0-9~]+)\/p([1-9][0-9]*)$/, { 'normalize_': fNormS }],
[/^([^/]*)$/, { 'normalize_': fNormS }],
[/^([a-zA-Z0-9~]+)\/(.+)\/?$/, { 'normalize_': fNormD }],
[/^([^/]*)$/, { 'normalize_': fNormS }]
[/^([a-zA-Z0-9~]+)\/p([1-9][0-9]*)(\/(.+)\/?)?$/, { 'normalize_': fNormS }]
];
}
}