diff options
| author | spiderr <spider@viovio.com> | 2013-03-13 10:19:57 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2013-03-13 10:19:57 -0400 |
| commit | f50c07240531cbfb15238745266da45ec797d27a (patch) | |
| tree | c6ec533f3e51eb0d3dea809b2a8af147d9f99dce | |
| parent | 5e8183113b0a5e3b775a032da69d751ebd5b918c (diff) | |
| download | tags-f50c07240531cbfb15238745266da45ec797d27a.tar.gz tags-f50c07240531cbfb15238745266da45ec797d27a.tar.bz2 tags-f50c07240531cbfb15238745266da45ec797d27a.zip | |
SEO cleanup to use canonical
| -rw-r--r-- | list.php | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -54,11 +54,17 @@ $listHash = $_REQUEST; $tagHash = $_REQUEST; if( isset($_REQUEST['tags']) ){ - $listData = $tag->assignContentList( $listHash ); + $pageTitle = tra( 'Tagged Content' ); + if( $listData = $tag->assignContentList( $listHash ) ) { + $pageTitle .= ' '.tra( 'with' ).' '.$_REQUEST['tags']; + $gBitSystem->setCanonicalLink( $tag->getDisplayUriWithTag( $_REQUEST['tags'] ) ); + } else { + $gBitSystem->setHttpStatus( HttpStatusCodes::HTTP_GONE ); + } $tagData = $tag->getList( $tagHash ); $gBitSmarty->assign( 'tagData', $tagData["data"] ); $gBitSmarty->assign( 'tagsReq', $_REQUEST['tags'] ); - $gBitSystem->display( 'bitpackage:tags/list_content.tpl', tra( 'Tagged Content' ) , array( 'display_mode' => 'list' )); + $gBitSystem->display( 'bitpackage:tags/list_content.tpl', $pageTitle, array( 'display_mode' => 'list' )); }else{ $listData = $tag->getList( $listHash ); $gBitSmarty->assign( 'tagData', $listData["data"] ); |
