Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6269

Closed
Open
Created Feb 07, 2014 by Administrator@rootOwner

Links in Wiki pages are missing relative_url_root

Created by: Hocsi

I installed gitlab to a relative url (/gitlab/), not to the root. Everything works fine, except the links in the wiki. i created 2 pages: http://server/gitlab/user/newtestproj/wikis/home http://server/gitlab/user/newtestproj/wikis/masik

home page contains this link link to other page

the created link inside Wiki is this: http://server/user/newtestproj/wikis/masik the correct would be: http://server/gitlab/user/newtestproj/wikis/masik

All of these were executed:

Note that four settings need to be changed for this to work.

#1) In your application.rb file: config.relative_url_root = "/gitlab"
#2) In your gitlab.yml file: relative_url_root: /gitlab
#3) In your unicorn.rb: ENV['RAILS_RELATIVE_URL_ROOT'] = "/gitlab"
#4) In ../gitlab-shell/config.yml: gitlab_url: "http://127.0.0.1/gitlab"
# To update the path, run: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
#
config.relative_url_root = "/gitlab"

gitlab version: GitLab 6.5.1 GitLab Shell 1.8.0 GitLab API v3 Ruby 1.9.3p194 Rails 4.0.2

Assignee
Assign to
Time tracking