fixed back-navigation issues on newly created articles, by modifying history state on save
This commit is contained in:
parent
0ea1251150
commit
2eb1305ea5
|
@ -262,6 +262,10 @@
|
|||
}
|
||||
}
|
||||
Message.ShowSuccess(Localizer["Save_Success"]);
|
||||
|
||||
if (Navigation.Uri.EndsWith("/article/new")) {
|
||||
Navigation.NavigateTo($"/article/{Article.Id}/edit", false, true);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Message.ShowError(Localizer["Save_Error"]);
|
||||
Logger.LogError(ex, "Failed to save article.");
|
||||
|
|
Loading…
Reference in a new issue