Relative links render differently in wiki page preview vs. page view
Summary
When adding a relative link to a wiki page, the preview rendering of the link refers to the project repository. When the page is saved and viewed as normal the relative link refers to the wiki.
Steps to reproduce
Create a relative link in a wiki page. In my example I used:
# 1. Rename objects
Run the [upgrade_v1_to_v2.sql upgrade script](oracle/upgrade_v1_to_v2.sql) to perform object renames.
Expected behavior
I would expect both links (preview and normal view) to be the same, whichever that is deemed to be.
Relevant logs and/or screenshots
Preview
Note the repository link:
Normal page view
Note the wiki link:
Output of checks
Results of GitLab Application Check
Ran sudo gitlab-rake gitlab:check SANITIZE=true
and all tests passed.
Results of GitLab Environment Info
Ran sudo gitlab-rake gitlab:env:info
System information
System: CentOS 6.5
Current User: git
Using RVM: no
Ruby Version: 2.1.7p400
Gem Version: 2.2.5
Bundler Version:1.10.6
Rake Version: 10.4.2
Sidekiq Version:3.3.0
GitLab information
Version: 8.1.4
Revision: 295b1f0
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://dhgitlab.COMPANY.co.uk
HTTP Clone URL: https://dhgitlab.COMPANY.co.uk/some-group/some-project.git
SSH Clone URL: git@dhgitlab.COMPANY.co.uk:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 2.6.5
Repositories: /git_data/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
This could be related to #7032 (closed).