Skip to content
Snippets Groups Projects

Fix URLs on forked projects by setting baseURL

Merged Emanuele Aina requested to merge em/apertis-website:master into master

GitLab Pages only really handles a single branch for each project, so forking is the best way to have the proposed pages be rendered and published by Pages.

By setting baseURL from CI using $CI_PAGES_URL we can ensure that links are set properly instead of always pointing at https://www.apertis.org/ as that's quite confusing during reviews.

However, for the main project we don't want to use the default GitLab pages address, but we want to have links using the official https://www.apertis.org/ address: to the main project now sets $BASEURL as a CI/CD variable to point at https://www.apertis.org/ while forked projects will use the default based on $CI_PAGES_URL.

Rendered here: https://em.pages.apertis.org/apertis-website/

Edited by Emanuele Aina

Merge request reports

Pipeline #148358 passed

Pipeline passed for faab6444 on em:master

Approval is optional

Merged by Martyn WelchMartyn Welch 4 years ago (Sep 11, 2020 11:46am UTC)

Merge details

  • Changes merged into master with faab6444.
  • Did not delete the source branch.

Pipeline #148359 passed

Pipeline passed for faab6444 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading