URL param additions on page load w/o page reload SEO design

by Vincent   Last Updated August 30, 2017 05:04 AM

I'm building a single page application and i'm using a client-side routing library to handle url/state changes.

Let's say googlebot visits example.com/my-shop-name/menu, the menu-items for my-shop-name are loaded dynamically and a url parameter is immediately appended to the url like so: example.com/my-shop-name/menu?top_item=some_item_id. top_item represents the item in a list of menu-items on the page that is currently at the top of the viewport. As the user scrolls, this parameter will naturally update as the top-most item changes. The point of this parameter is to remember the scroll position. It should also be pointed out that whenever the parameter is updated in the url, the page never reloads.

My first question is: what url will be indexed?

example.com/my-shop-name/menu or


Secondly, if the latter is indexed, will instructing the web crawlers to ignore top_item as a url parameter in robots.txt make it so the first url is indexed and the latter is not?

Related Questions

Does escape fragment works without hash in url?

Updated May 17, 2017 06:04 AM

Google not crawling AngularJS site

Updated July 23, 2017 21:04 PM

SEO and Progressive Web Apps

Updated February 13, 2018 13:04 PM

Why doesn’t Googlebot render the content?

Updated August 11, 2018 07:04 AM