Skip to content

Commit 4c01eaa

Browse files
authored
Merge pull request #62 from epochtalk/breadcrumbs-decode-uri
Breadcrumbs decodeURI
2 parents 55eb48b + ea0f82c commit 4c01eaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/layout/Breadcrumbs.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<div id="breadcrumbs">
55
<ul>
66
<li v-for="(breadcrumb, i) in breadcrumbs" :key="i" :class="{ active: (i + 1) === breadcrumbs.length }">
7-
<router-link v-if="(i + 1) !== breadcrumbs.length && breadcrumb.routeName && breadcrumb.label" :title="breadcrumb.label" :to="{ name: breadcrumb.routeName, params: breadcrumb.opts, hash: breadcrumb.hash }"><span v-html="truncate(breadcrumb.label, 30)"></span></router-link>
8-
<router-link v-if="(i + 1) !== breadcrumbs.length && breadcrumb.routePath && breadcrumb.label" :title="breadcrumb.label" :to="{ path: breadcrumb.routePath }"><span v-html="truncate(breadcrumb.label, 30)"></span></router-link>
9-
<span v-if="((i + 1) === breadcrumbs.length || (!breadcrumb.routeName && !breadcrumb.routePath)) && breadcrumb.label" :title="breadcrumb.label"><span v-html="truncate(breadcrumb.label, 30)"></span></span>
7+
<router-link v-if="(i + 1) !== breadcrumbs.length && breadcrumb.routeName && breadcrumb.label" :title="breadcrumb.label" :to="{ name: breadcrumb.routeName, params: breadcrumb.opts, hash: breadcrumb.hash }"><span v-html="truncate(decodeURI(breadcrumb.label), 30)"></span></router-link>
8+
<router-link v-if="(i + 1) !== breadcrumbs.length && breadcrumb.routePath && breadcrumb.label" :title="breadcrumb.label" :to="{ path: breadcrumb.routePath }"><span v-html="truncate(decodeURI(breadcrumb.label), 30)"></span></router-link>
9+
<span v-if="((i + 1) === breadcrumbs.length || (!breadcrumb.routeName && !breadcrumb.routePath)) && breadcrumb.label" :title="breadcrumb.label"><span v-html="truncate(decodeURI(breadcrumb.label), 30)"></span></span>
1010
<span v-if="((i + 1) === breadcrumbs.length || (!breadcrumb.routeName && !breadcrumb.routePath)) && breadcrumb.opts && breadcrumb.opts.locked" title="Locked" class="breadcrumbs-locked"><strong>(locked)</strong></span>
1111
</li>
1212
</ul>

0 commit comments

Comments
 (0)