Diversify URL schemes
phseiff opened this issue · comments
phseiff commented
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 essayfoo
. - The URL
phseiff.com/#bar/foo
also leads to the essayfoo
, no matter whatbar
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
.