Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix branch deploy #1833

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Fix branch deploy #1833

merged 1 commit into from
Nov 18, 2021

Conversation

carolynvs
Copy link
Member

What does this change

Fix how the root url is calculated for branch deploys, so that it keeps the special branch subdomain.

e.g. release-v1.porter.sh instead of release-v1--porter.netlify.app

What issue does it fix

A lot of the links on the porter website are absolute (for reasons). This meant that on the https://release-v1.porter.sh website some links (like the top level navigation) were all sending the user to https://release-v1--porter.netlify.app which is confusing.

This will keep the user on the same domain while using the v1 prerelease site.

Notes for the reviewer

This was tested out here: https://test.porter.sh, note that the links in the top nav stay on the same domain now.

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

Fix how the root url is calculated for branch deploys, so that it keeps the special branch subdomain.

e.g. release-v1.porter.sh instead of release-v1--porter.netlify.app

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs requested review from iennae and removed request for jeremyrickard November 18, 2021 15:50
@carolynvs carolynvs merged commit 9ea5d2c into release/v1 Nov 18, 2021
@carolynvs carolynvs deleted the test branch November 18, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants