Skip to content

Present user-provided 404 pages

Kamil Trzciński requested to merge handle-404 into master

If the 404.html is present in root of project it will be presented instead of generic 404.

Example:

  1. If you use the project page (served under /project/) and try to access: /project/non/exsiting/file we will try to serve: /project/404.html, then /404.html.

  2. If you use the group page (served under /) and try to access /non/existing/file we will try to serve: /404.html.

  3. If you use custom domain and try to access: /non/existing/file we will try to server /404.html only.

cc @axil

Fixes https://gitlab.com/gitlab-org/gitlab-ee/issues/318

Merge request reports