Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't understand this. I am able to bookmark the page (http://host#fragment), and it serves me the right page, no?

Ex: https://githubdocs.markmoffat.com/#Erant-ventorum-aliter-ess...



Yours works by accident. Try this one: https://githubdocs.markmoffat.com/#Suam-aera

Of course, this is just a bug. SPAs certainly can be bookmarked.


They can if the feature is implemented by the SPA framework/library/whatever, and if the JS loads and if there aren't any bugs (e.g. imagine a bug that means a fragment with an unexpected character can't be loaded).

Conversely, static HTML links (either links to id/name fragments in a large file, or links to specific pages if using separate files) almost can't fail, and it's incredibly unlikely a SPA would be even close to loading if regular static pages fail to load properly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: