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.
I want to overhault the way hashtags in the URL are processed by the website.
Currently, the URL
phseiff.com/#foo
leads to the essayfoo
. And for every essayfoo
, a file is hosted underphseiff.com/e/foo
andphseiff.com/essays/foo
that redirects tophseiff.com/#foo
.I want the behavior to be like the following, instead:
phseiff.com/#foo
leads to the essayfoo
.phseiff.com/#bar/foo
also leads to the essayfoo
, no matter whatbar
is.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-dirbar
and every essayfoo
, a file is hosted underphseiff.com/bar/foo
that redirects tophseiff.com/#bar/foo
.