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

Possible to use a /404.html in ohmlang to redirect to ohmjs.org? #1

Open
jcbhmr opened this issue Mar 9, 2023 · 0 comments
Open

Possible to use a /404.html in ohmlang to redirect to ohmjs.org? #1

jcbhmr opened this issue Mar 9, 2023 · 0 comments

Comments

@jcbhmr
Copy link

jcbhmr commented Mar 9, 2023

Instead of deploying to a gh-pages branch on another org's repo, I think it might be cleaner to use GitHub Actions to deploy to GitHub Pages in this org in a ohmjs/ohmjs.github.io repo, then have the ohmlang/ohmlang.github.io repo have a single /404.html page with this:

<!-- /404.html -->
<script>
const url = new URL(location);
url.host = "ohmjs.org";
location.replace(url);
</script>

image

This would (I think) delegate everything from https://ohmlang.github.io/custom?page#with:~:some=params to https://ohmjs.org/custom?page#with:~:some=params which could then be mapped to whatever ohmjs/ohmjs.github.io repo you want. Then again, I don't actually know if this works.

I'm just suggesting this as a possible improvement over your current workflow. If it works, and you don't really want to change it 👍 that's great! This is just an idea.

@jcbhmr jcbhmr changed the title Possible to use a /404.html to redirect to ohmjs.github.io? Possible to use a /404.html to redirect to ohmjs.org? Mar 9, 2023
@jcbhmr jcbhmr changed the title Possible to use a /404.html to redirect to ohmjs.org? Possible to use a /404.html in ohmlang to redirect to ohmjs.org? Mar 9, 2023
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

No branches or pull requests

1 participant