Skip to content

fix issue `wiki_base_path` not taking gitlab root url into account

songsong requested to merge (removed):fix-wiki-base-path-issue into master

Currently, wiki_base_path does not take GitLab CE root url into account. Thus, generating wrong wiki page url.

Detail added

In case of using non-bundled Nginx and set upstream for GitLab CE. Thus GitLab CE is accessible under http(s)://my-domain.com/gitlab/

Create a project test-project and add a wiki page with slug test-page And link it in another wiki page with [Go to test page](test-page)

This link generates a wrong link with url of http(s)://my-domain.com/test-project/wikis/test-page. The correct url should be http(s)://my-domain.com/gitlab/test-project/wikis/test-page

This fixes the issue.

Merge request reports