Google in search console has clearly stated that it is indexing as a smartphone. Our redirection logic, look at user-agent and redirects all mobile traffic to mobile URL. However, in our mobile site's header, our canonical URL is of the desktop site. This as per Google documentation here, should be indicating it as primary URL to Googlebot and it identifies primary content based on canonical. As per the link, Googlebot tries to crawl primary content more often.
Will our redirection to mobile site and canonical with desktop URL by creating an infinite loop for the Googlebot? Is there any chance Googlebot will crawl our site less often, as the link it's getting is mobile URL and it says it's an alternative URL in its header?
Some quick info of the setup, to set the context for the question:
- Both the primary domain and mobile domains are sub-domains. (Eg:text.site.com & m.site.com)
- Google search console says it's indexing as a smartphone in the console.
- Mobile traffic to the desktop site is automatically redirected to the mobile URL. However, desktop traffic to a mobile URL is not redirected back.
- In desktop site, canonical is the desktop url itself. Eg:
<link rel="canonical" href="[Desktop URL]" />
. Apart from that, alternate link is given header with link to mobile site aswell. Eg:<link rel="alternate" href="[Mob URL]" />
- In the mobile website, the canonical URL points to the desktop site.
- Google search results are showing mobile URLs in mobile search and desktop URLs in desktop search.