How to return 404 error in a custom module #6068
Unanswered
mohamad-asghari
asked this question in
Q&A
Replies: 1 comment 2 replies
-
PortalSettings has a setting called ErrorPage404 which is an integer representing the TabId. Once you get that, you can do something like:
Now I am not sure, but I think maybe if there is no custom Error page, that setting may be -1 (or 0) or something... So you may want to try that scenario out. I am guessing that NavigateURL will show the 404 url when passed an invalid tabId, but I did not try. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to return 404 error in a custom module? When it returns a 404 error, the 404 page should also be displayed.
For example, the details of a product that has been removed, we want this error to be returned.
Beta Was this translation helpful? Give feedback.
All reactions