Skip to content

Render index.* like README.* when it's present in a directory

Jakub Jirutka requested to merge jirutka/gitlab-ce:fix-18933 into master

What does this MR do?

Adds an alternative name for README file: /index[^\/]*/.

From https://gitlab.com/gitlab-org/gitlab-ce/issues/18933:

If we could render index.md like README.md then we would have a 2-way profit:

The main point is clean URLs.

Are there points in the code the reviewer needs to double check?

I’m not sure.

Why was this MR needed?

Screenshots (if relevant)

N/A

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#18933 (closed)

Edited by Jakub Jirutka

Merge request reports