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

Feature: Support a hash-based history #56

Closed
julienw opened this issue Jan 6, 2025 · 2 comments
Closed

Feature: Support a hash-based history #56

julienw opened this issue Jan 6, 2025 · 2 comments

Comments

@julienw
Copy link

julienw commented Jan 6, 2025

Hi!

I'm migrating from the deprecated preact-router because of preactjs/preact-router#474, but I'm missing the hash-based routing which is quite necessary when hosting on github; indeed as far as I understand github pages doesn't have a SPA configuration so that all requests go the same page.

Thanks for your consideration!

@sohaha
Copy link

sohaha commented Jan 6, 2025

I actually have this need too.

@rschristian
Copy link
Member

rschristian commented Jan 6, 2025

Hash routing will not be supported. preact-iso is a set of isomorphic utilities (meaning it works in both the browser and server) but hash routers are fundamentally non-isomorphic, they'll work only in a browser. See #19, #21

I'm a bit surprised to hear a static site host doesn't have basic catch-all configuration. Weird, I'd consider that a table-stakes feature.

@rschristian rschristian closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
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

3 participants