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

Redirect static base URLs to a helpful landing page #77

Merged
merged 5 commits into from
Sep 17, 2021

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Sep 15, 2021

This PR is a potential solution for #76, by redirecting the static base URLs served here to a semi-informative landing page, rather than 404'ing.

Unfortunately netlify can't do redirects based on Accept headers, so serving a JSON response is not possible (unless we get rid of this HTML response). The HTML response mimics the way most providers are handling their base URLs, so I don't think there is an issue here.

@ml-evs
Copy link
Member Author

ml-evs commented Sep 15, 2021

@ml-evs ml-evs changed the title Redirect static base URLs to the appropriate links endpoint Redirect static base URLs to a helpful landing page Sep 17, 2021
@ml-evs
Copy link
Member Author

ml-evs commented Sep 17, 2021

Think this is ready @CasperWA!

Copy link
Member

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

Great! Thanks @ml-evs !

I have only one suggested addition.

src/landing_page.html Show resolved Hide resolved
src/landing_page.html Outdated Show resolved Hide resolved
Copy link
Member

@CasperWA CasperWA left a comment

Choose a reason for hiding this comment

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

Huzzah 🚀

@ml-evs ml-evs merged commit fb05359 into master Sep 17, 2021
@ml-evs ml-evs deleted the ml-evs/add_redirects branch September 17, 2021 13:35
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.

None yet

2 participants