4 ms·
Good point. The first URL is really how the page is intended to be accessed. I'm going to work on an option to enable using pushState for navigation which woul
by ByteMuse 15y ago
Good point. The first URL is really how the page is intended to be accessed.
I'm going to work on an option to enable using pushState for navigation which would use hashless URLs. The only downside is that users would have to enter the site through the base URL or some JS would have to be included in each content page.
Thanks for the feedback, really got me thinking about how to add pushState support!
- huhtenberg 15y agoThis should really be handled on a server side with a set of redirects, and Twitter would be a good example to follow. Their redirect setup is this: http://.../_escaped_fragment_=PAGE -> http://.../PAGE The _escaped_fragment_ URL is what is crawled by Google as per [0] and the redirect ensures that PAGE gets recorded in Google as /PAGE. Then they also do this: http://.../PAGE -> http://.../#!/PAGE but only for logged in users and, I would assume, NOT for requests that have _escaped_fragment_ in the Referer (sic). This ensures that regular URLs work as expected, including those picked up by the users from Google. [0] http://code.google.com/web/ajaxcrawling/docs/specification.html http://code.google.com/web/ajaxcrawling/docs/specification.h...