Re:Show HN: Routerless
by floatingatoll on Monday July 10, 2017 @03:39PM
(#14738969)
Fragments are worse than described here. Fragments are incompatible with redirects. Not only does the browser not send them, but any server-side redirects will either require active-JS redirects to capture and redirect the fragment, or strip the fragment as inappropriate/pointless, or if you're very lucky, maintain it somehow through the redirect. Do not use fragments for any critical function without vetting your entire workflow and all servers and useragents in your request/response path.
[ Parent
| on HN ]
Re:Show HN: Routerless
by AndrewStephens on Monday July 10, 2017 @03:58PM
(#14739111)
What you say is absolutely true, and I agree. But I also subscribe to the URLs-are-user-interface school of thought and think that implementing redirects to change your UI requires careful thought. I'll admit that sometimes it is unavoidable as applications change over time.
Maintaining state in the path, query parameters, or fragment are all techniques that can work, but each comes with disadvantages.
I wonder if anyone has been mad enough to maintain state in subdomains: