Replies: 3 comments 4 replies
-
you can create custom 404 page by adding NotFound.liquid to the Views/shared directory |
Beta Was this translation helpful? Give feedback.
-
You are checking if Then maybe something like this
|
Beta Was this translation helpful? Give feedback.
-
@saleemhaq If I were you, l’d have used OnGet using PageModel and inside OnGet if article is null returned NotFound that would have captured by my 404 page |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The correct url is: https://localhost:44300/article/register
but when someone edit or mistakenly type the wrong url the error has come header is twice show and error is show: An error occurred while executing this request.
Need to show the custom 404 page, please advise @Skrypt @ns8482e
Beta Was this translation helpful? Give feedback.
All reactions