| Page 1 of 1 | [ 5 posts ] |
|
Hi,
The google people have decided to make Ajax pages crawlable by looking for references to urls that include #!state_information. YUI uses a more straight-forward #state_information technique. (No exclamation mark). See http://code.google.com/web/ajaxcrawling Using YUI History Manager api, can I simply prefix my module identifier(s) with a ! in every case? Eg Code: YAHOO.util.History.register("!calendar", initialCalendarState, function (state){...} ? Thanks! |
|
My understanding is that Google expects to see only one ! preceding the hash fragment. If you have multiple history module identifiers, each prefixed with !, then it would create a URL like this:
Code: http://example.com/#!foo=bar&!baz=quux When Google translates that to a non-fragment URL for crawling, it would most likely end up as: Code: http://example.com/?_escaped_fragment_=foo=bar%26!baz=quux Notice how the first ! is removed, but the second remains. As long as your server-side code can handle this and return crawlable pages (perhaps by stripping preceding ! characters from the parameters), it should be fine, but it's something to be aware of. That said, this is all just my understanding based on reading the Ajax crawling spec. You should use the Fetch as Googlebot tool to verify that this is the case. |
|
Thank you.
Sounds like the workaround is doable but not as smooth as would be preferred. Does this issue sound reasonable as an enhancement to History Manager--to use #! as the prefix for the state info rather than #? Thanks, Larry |
|
Yep, that would make an excellent enhancement for 3.2.0. In fact, I'm implementing it as I type this. Thanks for bringing it up!
|
|
Thank you for your time! Created Ticket #2528957
|
| Page 1 of 1 | [ 5 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group