mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
BUGFIX: Sometimes link doesnt work correctly
This commit is contained in:
parent
54b1c07049
commit
0bf95f21c3
@ -100,10 +100,12 @@ class BlogEntry extends Page {
|
||||
$tags = split(" *, *", trim($this->Tags));
|
||||
$output = new DataObjectSet();
|
||||
|
||||
$link = $this->getParent() ? $this->getParent()->Link('tag') : '';
|
||||
|
||||
foreach($tags as $tag) {
|
||||
$output->push(new ArrayData(array(
|
||||
'Tag' => $tag,
|
||||
'Link' => $this->getParent()->Link('tag') . '/' . urlencode($tag),
|
||||
'Link' => $link . '/' . urlencode($tag),
|
||||
'URLTag' => urlencode($tag)
|
||||
)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user