client/posts: fix stripping query for edit page
This commit is contained in:
parent
8ef0017531
commit
8de7541bc5
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ class PostController {
|
||||||
// be still accessed after history navigation / page refresh
|
// be still accessed after history navigation / page refresh
|
||||||
if (parameters.query) {
|
if (parameters.query) {
|
||||||
ctx.state.parameters = parameters;
|
ctx.state.parameters = parameters;
|
||||||
router.replace('/post/' + id, ctx.state, false);
|
const url = editMode ?
|
||||||
|
'/post/' + id + '/edit' :
|
||||||
|
'/post/' + id;
|
||||||
|
router.replace(url, ctx.state, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._post = post;
|
this._post = post;
|
||||||
|
|
Loading…
Reference in a new issue