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

CommentFileSizeAuthor
#1 custom_error_page_url_alias.patch1.66 KBRobLoach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Title: can not use url alias for custom error page » Cannot set custom error pages to URL aliases
Status: Active » Needs review
FileSize
1.66 KB

Without 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.

Pasqualle’s picture

Status: Needs review » Reviewed & tested by the community

the 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

Dries’s picture

I can't think of any immediate side effects so this looks good to me.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Agreed, committed, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.