diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 765021dd0..531df5287 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -434,8 +434,9 @@ $btrace_msg
function get_tags_content_title()
{
global $page;
- $title = count($page['tags']) > 1 ? l10n('Tag') : l10n('Tag');
- $title.= ' ';
+ $title = ''
+ . l10n( count($page['tags']) > 1 ? 'Tags' : 'Tag' )
+ . ' ';
for ($i=0; $i';
- $remove_url = null;
- if (count($page['tags']) == 1)
- {
- $remove_url = get_root_url().'tags.php';
- }
- else
+ if (count($page['tags']) > 2)
{
$other_tags = $page['tags'];
unset($other_tags[$i]);
@@ -468,15 +464,15 @@ function get_tags_content_title()
'tags' => $other_tags
)
);
- }
- $title.=
- '
'
- .'';
+ $title.=
+ '
'
+ .'';
+ }
}
return $title;
}
diff --git a/index.php b/index.php
index 6e3f3f6d9..9fbc083f7 100644
--- a/index.php
+++ b/index.php
@@ -98,7 +98,12 @@ if (isset($page['is_homepage']) and $page['is_homepage'])
}
else
{
- $canonical_url = duplicate_index_url();
+ $start = $page['nb_image_page'] * round($page['start'] / $page['nb_image_page']);
+ if ($start>0 && $start >= count($page['items']) )
+ {
+ $start -= $page['nb_image_page'];
+ }
+ $canonical_url = duplicate_index_url(array('start' => $start));
}
$template->assign('U_CANONICAL', $canonical_url);