How does Google interpret JS redirects?
πŸ‘‰πŸ» It indexes the start page
πŸ‘‰πŸ» It doesn't index the destination page
πŸ‘‰πŸ» It sees redirect as a DOM update and uses the content of the destination page

#seo #googlebot

@merlinox Interesting.

I wonder if Googlebot would behave differently if the original/start page was not blank?

I still think Googlebot crawls a lot *without* javascript (like a 'forward scout bot') so if the page the scout found wasn't empty - would it behave differently? πŸ€”

@simoncox @optimisey sure! And I will be glad to read your results.

@merlinox @optimisey

🀣

yeah, ok.

@merlinox @optimisey

I'm building a test now anyway. :)

Javascripting a redirect

This is a javascripted redirecting page to see what happens when it is indexed.

Simon Cox
@simoncox @optimisey have the pages the same content?
@merlinox @optimisey
No slightly different so I can tell what gets indexed. Have put the first url in GSC.

@merlinox @optimisey

Page 1 indexed with content and is findable with "Javascripted redirected page" as a query.

Page 2 not crawled and indexed yet.

#seo

@merlinox @optimisey
More info...

Title of page 1 is: "Javascripting a redirect"
and description: "This is a javascripted redirecting page to see what happens when it is indexed."

The title of page 2 is: "Javascripted a redirect"
and description: "This is a javascripted and redirected page to see what happens when it is indexed."

And we can see the SERP is showing the 1st page URL, The title and description from the 2nd page - even though it is not indexed.

@simoncox @optimisey like my test :)
@merlinox @optimisey exactly! Not seeing anything different to your test so far!