Skip to content

Commit

Permalink
Remove last trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
nolze committed Sep 10, 2020
1 parent 9fd3e6c commit f254c68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion view/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
let query = {};
let load = (ctx, next) => {
params = ctx.params;
params = Object.assign({}, ctx.params);
if (!!params.pageid && params.pageid.endsWith('/')) {
params.pageid = params.pageid.slice(0, -1);
}
query = qs.parse(ctx.querystring);
next();
Expand Down

0 comments on commit f254c68

Please sign in to comment.