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

When you scrape the HTML from a single page app (let's say the default app homepage) do you re-write the javascript links to be HTML links with unique URLs?

If not, how does Google find anything more than the app homepage?



Your links on your homepage, should already be "<a></a>" anchor links. When google hits your page, and it's served up by SnapSearch, then it will automatically find those anchor tags and navigate to the subpages. If you're talking about buttons, perhaps Google will click on those buttons. But any links should be represented by anchor links.

This works for SnapSeach.io. Check on Google, search https://snapsearch.io and all the subpages of SnapSearch are indexed. Also works for http://dreamitapp.com

So to answer your question, there's no need to rewrite your links.


Sitemap works


Yep a sitemap can also work. But it's not needed, since Google will follow your anchored links anyway. SnapSearch in the future can also create sitemaps dynamically.




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

Search: