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 website BASEURL #2003

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Fix website BASEURL #2003

merged 1 commit into from
Apr 4, 2022

Conversation

carolynvs
Copy link
Member

@carolynvs carolynvs commented Apr 4, 2022

What does this change

I had made a change earlier to netlify.toml and forgot to use export when setting BASEURL. So at the moment when you go to release-v1.porter.sh or a pull request preview, the navigation links at the top all redirect back to porter.sh instead of using the unique BASEURL specific for that PR/branch.

I have moved the BASEURL logic into mage so that it's not as easy to break in the future (hopefully).

Note that in each preview, when you hover over the top nav links, they stay on the same domain
Branch Preview: https://fix-branch-deploys--porter.netlify.app/
PR Preview: https://deploy-preview-2003--porter.netlify.app/

What issue does it fix

Links at the top of release-v1.porter.sh go to pages on porter.sh instead of the v1 website links.

Notes for the reviewer

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

I had made a change earlier to netlify.toml and forgot to use export
when setting BASEURL. So at the moment when you go to
release-v1.porter.sh or a pull request preview, the navigation links at
the top all redirect back to porter.sh instead of using the unique
BASEURL specific for that PR/branch.

I have moved the BASEURL logic into mage so that it's not as easy to
break in the future (hopefully).

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs marked this pull request as ready for review April 4, 2022 19:34
@carolynvs carolynvs requested a review from VinozzZ April 4, 2022 19:50
@carolynvs carolynvs merged commit 0a5cfb5 into release/v1 Apr 4, 2022
@carolynvs carolynvs deleted the fix-baseurl branch April 5, 2022 13:36
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.

3 participants