It is not possible to use url aliases on admin/settings/error-reporting page to set custom error page
it is inconsistent with admin/settings/site-information where I can use url alias for the default front page
it is hard to create language dependent error pages without this functionality
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | custom_error_page_url_alias.patch | 1.66 KB | robloach |
Comments
Comment #1
robloachWithout the validation in place, you can set the error page to anything you want, including URL aliases. When the 404 error reporting page is set to a URL that's not being used by either a system path or a URL alias, it outputs the default page not found page. This seems to effectively get the desired result.
This also helps when you want to set the 404 page to a View taking in some custom arguments that arn't present in the menu system.
Comment #2
pasquallethe patch works.
there is still inconsistency with default front page validation, but you convinced me, the validation is not necessary.
tested:
multilingual error pages with path alias
inexistent url set as custom error page
Comment #3
dries commentedI can't think of any immediate side effects so this looks good to me.
Comment #4
gábor hojtsyAgreed, committed, thanks.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.