Skip to content

Commit 30e6fc5

Browse files
authored
Merge pull request #2600 from daiyam/fix-taglist
fix route when selecting multiple tags
2 parents 10d3adb + d97bbe7 commit 30e6fc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/main/SideNav/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class SideNav extends React.Component {
269269
const tags = pathSegments[pathSegments.length - 1]
270270
return (tags === 'alltags')
271271
? []
272-
: tags.split(' ').map(tag => decodeURIComponent(tag))
272+
: decodeURIComponent(tags).split(' ')
273273
}
274274

275275
handleClickTagListItem (name) {
@@ -301,7 +301,7 @@ class SideNav extends React.Component {
301301
} else {
302302
listOfTags.push(tag)
303303
}
304-
router.push(`/tags/${listOfTags.map(tag => encodeURIComponent(tag)).join(' ')}`)
304+
router.push(`/tags/${encodeURIComponent(listOfTags.join(' '))}`)
305305
}
306306

307307
emptyTrash (entries) {

0 commit comments

Comments
 (0)