Skip to content

Allows serving content with pretty urls

sdwolfz requested to merge sdwolfz/gitlab-pages:pretty-urls into master

Pretty urls means they contain no trailing slash. To achieve this I've removed the redirection for the trailing slashed version and serve the same file content.

For reference see below issue: #9 (comment 310884195)

One more thing, I can not understand what's the deal with the following check:

require.HTTPRedirect(t, serve, "GET", makeURL("/project//about.gitlab.com/%2e%2e"), nil)

It seems to want the behaviour to be a redirect when you reference a parent directory in a url via /... Does this really matter?

Merge request reports