Mobile app version of vmapp.org
Login or Join
LarsenBagley505

: @Christofian you should be able to determine if a hash tag is being used since they turn up after an event such as a click on a link. That usually triggers some javascript location.hash

@LarsenBagley505

@Christofian you should be able to determine if a hash tag is being used since they turn up after an event such as a click on a link. That usually triggers some javascript location.hash or jQuery method to add the hash to the URL client side. Google's clear if you have a hash tag use ! if you don't have a hash tag in the URL and your page has AJAX use the meta tag. One or the other none override the other. You should be looking for the function that's adding the hash tag, before it fires check if a hash is being added if not add the meta tag.

Sample

var projectSlug = location.hash.replace("#","");
if(projectSlug != "index"){
processProject(projectSlug);
}

10% popularity Vote Up Vote Down


Login to follow query

More posts by @LarsenBagley505

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme