mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
SelectedTag will now 'urldecode' tag.
Inside of 'code/BlogEntry.php' the method TagsCollection() 'urlencode's the tag before making it into a link. Tags with spaces, and other special characters, will not return any BlogEntries from BlogTree::Entries().
This commit is contained in:
parent
2936024e8d
commit
7e0c58a637
@ -322,7 +322,12 @@ class BlogTree_Controller extends Page_Controller {
|
||||
* @return String
|
||||
*/
|
||||
function SelectedTag() {
|
||||
return ($this->request->latestParam('Action') == 'tag') ? Convert::raw2xml($this->request->latestParam('ID')) : '';
|
||||
if ($this->request->latestParam('Action') == 'tag') {
|
||||
$tag = $this->request->latestParam('ID');
|
||||
$tag = urldecode($tag);
|
||||
return Convert::raw2xml($tag);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user