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

Pretty URLs: mathdown.net/foobar #59

Closed
cben opened this issue Nov 18, 2014 · 1 comment
Closed

Pretty URLs: mathdown.net/foobar #59

cben opened this issue Nov 18, 2014 · 1 comment

Comments

@cben
Copy link
Owner

cben commented Nov 18, 2014

This requires a server, which is needed for crawlable docs anyway.
(Pretty URLs could also work on static hosting with smarter routing, e.g. divshot.com

I'd like to keep the option of running from static files with ?doc=foobar or #doc=foobar without a server, at least for local development.

A central question is whether I still care about ability to run from Github Pages?

  • It IS very good that any fork can be used directly off Github! [limited to gh-pages branch, as long as rawgit doesn't support submodules...]!
  • Turns out github does correctly sign HTTPS now for USER.github.io/mathdown URLs. So that's wonderful — people can test their forks without compromising security :-)
    • There is still a question of ? URLs needlessly(?) sending the secret doc id to Github. Perhaps I do need to switch to # or #! URLs? OTOH, if you're running from Github Pages, you're trusting Github to not inject evil spyware JS anyway. Although URLs are an easier target for evil employees, they probable linger in various access logs.
  • I once thought I can abuse GH Pages' 404 support to return the same html for any /foobar URL but while the html would be visible, it would be returned with 404 status, which is absolutely wrong. (Besides, that only works for org & user pages, so useless for forks)
@cben cben mentioned this issue Jan 25, 2015
3 tasks
@cben
Copy link
Owner Author

cben commented Dec 17, 2022

This is possible on Netlify which supports SPA routing (I think via 404.html)?
But it's not a priority, ?doc= support is better across alternate ways somebody might run it, and I'm not gonna bother.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant