Multiple URLS + Canonical


(Tbaatar) #1

Hi,

 

This question has been asked couple of times in the past, and I noticed there was never any real solution for handling multiple URL's with canonical header tag for assets that produce pagination such as asset listing, calendar asset, news asset etc.

 

How would I go about printing the parent asset url (www.example.com/world-cup) to the canonical tag for all the url's below? or for any assets that produce multiple url's?

/world-cup
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-06-21
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-06-24
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-06-27
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-06-30
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-07-03
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-07-09
/world-cup?SQ_DESIGN_NAME=mobile_blank&show_date=2014-07-12
/world-cup?r=mobile&show_date=2014-06-15
/world-cup?r=mobile&show_date=2014-07-06
/world-cup?r=mobile
/world-cup?show_date=2014-06-15
/world-cup?show_date=2014-06-18
/world-cup?show_date=2014-06-21
/world-cup?show_date=2014-06-24

Any suggestion?

 

 

Thanks.

 

 


(Bart Banda) #2

For the example above, you can just use %asset_url% as it will only print the web path and exclude the query string of the URL. Is that what you would need?


(Tbaatar) #3

Didn't think it would be that simple. I always presumed %asset_url% would always print the current full web path including the query string.

 

Will see what Google thinks in couple of days time.

 

 

Thanks.