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

Diversify URL schemes #37

Open
phseiff opened this issue May 29, 2021 · 0 comments
Open

Diversify URL schemes #37

phseiff opened this issue May 29, 2021 · 0 comments

Comments

@phseiff
Copy link
Owner

phseiff commented May 29, 2021

I want to overhault the way hashtags in the URL are processed by the website.

Currently, the URL phseiff.com/#foo leads to the essay foo.
And for every essay foo, a file is hosted under phseiff.com/e/foo and phseiff.com/essays/foo that redirects to phseiff.com/#foo.

I want the behavior to be like the following, instead:

  • The URL phseiff.com/#foo leads to the essay foo.
  • The URL phseiff.com/#bar/foo also leads to the essay foo, no matter what bar is.
  • If foo is not a valid essay and scroll location, the hashtag is cleared (rather than just failing and leaving the hashtag as-is).

I could then easily add a list of essay-dirs to the builder (like e, essays, about), and for every essay-dir bar and every essay foo, a file is hosted under phseiff.com/bar/foo that redirects to phseiff.com/#bar/foo.

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