pushState and SEO

0 votes
This is my scenario :
I'm on example.com. My user clicks a link: href="example.com/blog"
pushState captures the click, updates the URL, grabs a JSON file from somewhere, and creates the listing of blog posts in the content area.
Google knows to go to the escaped_fragment URL to get their static content because of hashbangs.
With pushState, Google just sees nothing as it can't use the JavaScript code to load the JSON and subsequently create the template.
The only way to do it is to render the template on the server side, but that completely negates the benefits of pushing the application layer to the client.

 "use pushState rather than hashbang" I have been hearing this a lot but how can it be search engine friendly if we don't use hashbangs?
Mar 11, 2022 in Digital Marketing by Kichu
• 19,040 points
1,899 views

1 answer to this question.

0 votes
Google suggests meta tags for those who dont want hash bangs in their URL : <meta name="fragment" content="!">
The solution is to pass an HTML table and jqgrid with the JSON equivalent. SEO reads the HTML, and the user gets an upgraded experience and all subsequent requests via ajax. Using pushstate. Based on how the user sorts the grid/pages you can update the URL( without using a hashbang ). This will allow the user to save the URL and come back to the same result.
answered Mar 12, 2022 by narikkadan
• 86,360 points

Related Questions In Digital Marketing

0 votes
0 answers

SEO: Why "indexed pages" in Webmaster Tools and the command "site:" gives so much difference?

"Indexed URLs: 305,509"webmaser shows this when i ...READ MORE

Mar 2, 2022 in Digital Marketing by Kichu
• 19,040 points
830 views
0 votes
0 answers

BigPipe Facebook and SEO

I'm quite interested in the Facebook's BigPipe technique for ...READ MORE

Mar 3, 2022 in Digital Marketing by Kichu