Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.