Changeset 1079 in products


Ignore:
Timestamp:
Jul 13, 2009 1:07:09 PM (17 years ago)
Author:
chervol
Message:

removed index_html from path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qSEOptimizer/trunk/skins/qSEOptimizer/qSEO_Canonical.py

    r1078 r1079  
    1616    portal = context.portal_url.getPortalObject() 
    1717    if portal.hasProperty('canonical_url'): 
    18         return portal.getProperty('canonical_url') + context.portal_url.getRelativeUrl(context) 
     18        rpath = context.portal_url.getRelativeUrl(context) 
     19        if rpath.endswith('index_html'): 
     20            rpath = rpath[:-11] 
     21        return portal.getProperty('canonical_url') + rpath 
    1922    else: 
    2023        return context.absolute_url() 
Note: See TracChangeset for help on using the changeset viewer.