Prinzhorn / skrollr-menu

skrollr plugin for hash navigation
MIT License
285 stars 143 forks source link

Support navigation with hashtag + another mark #49

Closed XiLI89 closed 10 years ago

XiLI89 commented 10 years ago

Hey, there is any support to navigate around a parallax with the menu plugin in differant way it used to be?

I mean, when we use # only to navigate around its not SEO friendly. the method google asked us as developers is to add some kind of another mark after the #, like "!" (e.g. http://example.com#!this-new-section ), so in this way, google bots will recognize it as a page of the website.

unfortuntally, i didnt find a method (or successed to create one) for this thing. everytime i add the "!" mark after the #, the link is broken and nothing work. is there any workaround?

Prinzhorn commented 10 years ago

Please post a link where you found this, because this sounds like nonsense. Anchor links have been around forever, there's nothing wrong with them that needs to be fixed.

XiLI89 commented 10 years ago

here an example: http://www.folyou.com/en/home#!responsive

here an explanation for the whole story why i use "#!": http://moz.com/blog/how-to-allow-google-to-crawl-ajax-content

also Google developers explanation: https://developers.google.com/webmasters/ajax-crawling/ https://developers.google.com/webmasters/ajax-crawling/docs/getting-started

anyway, i didnt say it broken, i just cant manage to move around if i put the "!" after the "#". the problem comes up when i need to aim the menu to the desired div with # before its ID.

while <a href="#myDiv"> would work perfectly, when i use <a href="#!myDiv"> wont work since i cant put "!" in the id field of "myDiv" (using so leads to broken code).

Prinzhorn commented 10 years ago

How is this related to a single-page website using skrollr? The link is about dynamic ajax content. As I said before, anchor links have been around forever and by using a hash-bang you basically achieve the opposite of what you want. There is nothing that needs to be fixed.