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

Enable Federalist previews #383

Merged
merged 2 commits into from
Apr 30, 2020
Merged

Enable Federalist previews #383

merged 2 commits into from
Apr 30, 2020

Conversation

hursey013
Copy link
Contributor

This updates the path of various assets and routing components to accommodate the unique url structure of Federalist preview branches. This will allow changes to be view on the branch specific URLs like https://federalist-88023b0b-4406-431f-932d-5fd82c70c515.app.cloud.gov/preview/gsa/code-gov-front-end/bh-public-path/ without having to merge to staging to view.

This appears to be working well locally and on the Federalist branches, but I would like to see how it works on the staging branch before merging it to production.

There is also one caveat that will either need to be accepted, or worked around in a future PR. There is logic hardcoded in the 404.html and index.html pages that strips the path/query string of the URL out and redirects to the base URL - this is the expected behavior on the production site, but on a Federalist preview URL it will cause an infinite reloading loop.

@jcastle-zz jcastle-zz added this to the NextRelease - v1.2.0 milestone Apr 28, 2020
@jcastle-zz jcastle-zz self-assigned this Apr 28, 2020
@jcastle-zz jcastle-zz added [area] platform Pertains to Code.gov environment (components, devops) [effort] medium labels Apr 28, 2020
Copy link
Contributor

@jcastle-zz jcastle-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@seanstar12
Copy link
Contributor

After testing, I believe the infinite redirect is an acceptable risk for the 404 page. I was unable to replicate locally, and I think the benefits of this branch outweigh the redirect.

@seanstar12 seanstar12 merged commit a268b3e into master Apr 30, 2020
@seanstar12 seanstar12 deleted the bh-public-path branch April 30, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[area] platform Pertains to Code.gov environment (components, devops) [effort] medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants