Changeset 13458


Ignore:
Timestamp:
03/02/12 16:28:43 (8 years ago)
Author:
plg
Message:

feature 2368: better canonical URL for homepage

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/section_init.inc.php

    r13258 r13458  
    158158        } 
    159159      } 
     160      $page['is_homepage'] = true; 
    160161      break; 
    161162    } 
  • trunk/index.php

    r13062 r13458  
    9090} 
    9191 
    92 $template->assign('U_CANONICAL', duplicate_index_url()); 
     92if (isset($page['is_homepage']) and $page['is_homepage']) 
     93{ 
     94  $canonical_url = get_gallery_home_url(); 
     95} 
     96else 
     97{ 
     98  $canonical_url = duplicate_index_url(); 
     99} 
     100$template->assign('U_CANONICAL', $canonical_url); 
    93101 
    94102//----------------------------------------------------- template initialization 
Note: See TracChangeset for help on using the changeset viewer.