robbb_J’s avatarrobbb_J’s Twitter Archive—№ 2,151

        1. I found a gross hack today to host a Single Page App on GitHub pages with no fallback URLs. You can specify a 404.html file which is served for “not-found” pages, with a http 404 code.
      1. …in reply to @Robbb_J
        Then in that html file you can run JavaScript to redirect to hash based routing. const url = new URL(location.href) url.hash = url.pathname url.pathname = '/' location.href = url.toString()
    1. …in reply to @Robbb_J
      It’s not ideal, but for a site which we’re archiving it means we can turn off all servers and host for free on GitHub pages. Then if anyone has links to the old site they still work.
  1. …in reply to @Robbb_J