2

I have Angular 2 app (SPA) running on (let's say) www.example.com.

In Google Search Console when I run fetch as Google I have the following result:

  • www.example.com - renders correctly
  • www.example.com/user-profile - renders as www.example.com page NOT as expected user-profile page

What do I need to do to get this page rendering properly for Googlebot?

  • What happens if you has a user paste that profile URL into a newly opened web browser? – Stephen Ostermiller Jul 13 '17 at 14:54
  • When accessing URL via browser, each link is rendered correctly, but it seems that Google sees just index page. – Tomas Marik Jul 13 '17 at 14:58
-1

If Google is unable to render your Javascript, then you either need to present a static version or alter the code. You can self host images or work with a product like prerender.io.

  • Well google is able to render the default route correctly. It seems that only the other routes are the problem. – Tomas Marik Jul 13 '17 at 15:26
  • Googlebot usually does a good job of rendering client side stuff as long as it happens onload. I'm not familiar enough with Anguar to diagnose this issue, but it shouldn't require pre-rendered static. – Stephen Ostermiller Jul 13 '17 at 15:32
  • Google won't waste resources if it doesn't have to. Static renderings presented to the engine speed things immensely and help dynamically generated sites rank. That's why prerendering products exist. How does Google behave when you use the IP address in place of a domain name? 1.1.1.1/usernameprofile - it may be a resolution issue. – L Martin Jul 14 '17 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.