fix for link encoding issue
small bug where links in the archive and tag templates where being rendered as url encoded strings, so that needed to be decoded so it displays as normal text
This commit is contained in:
parent
a7354da38f
commit
9c432db209
2 changed files with 7 additions and 4 deletions
|
@ -90,7 +90,7 @@ class SortingService
|
|||
if (isset($page['tags'])) {
|
||||
if (strpos($page['tags'], $tag) !== false) {
|
||||
array_push($tagged, [
|
||||
'title' => $page['title'],
|
||||
'title' => urldecode($page['title']),
|
||||
'slug' => $page['slug'],
|
||||
'path' => $page['path'],
|
||||
'feature' => $page['feature'],
|
||||
|
|
|
@ -14,14 +14,17 @@
|
|||
<div role="archive-month">
|
||||
<h3>{{ $data['full_month'] }}</h3>
|
||||
@foreach($data['pages'] as $page)
|
||||
@php
|
||||
$title = urldecode($page['title']);
|
||||
@endphp
|
||||
@if(isset($dynamicRender))
|
||||
@if($dynamicRender == 'true')
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
||||
@else
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $page['title'] }}</a><br/>
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $title }}</a><br/>
|
||||
@endif
|
||||
@else
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue