1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

fix URI when selecting multiple tags

This commit is contained in:
Baptiste Augrain
2018-11-11 10:10:09 +01:00
parent fdb1ef540d
commit d97bbe7918

View File

@@ -269,7 +269,7 @@ class SideNav extends React.Component {
const tags = pathSegments[pathSegments.length - 1] const tags = pathSegments[pathSegments.length - 1]
return (tags === 'alltags') return (tags === 'alltags')
? [] ? []
: tags.split(' ').map(tag => decodeURIComponent(tag)) : decodeURIComponent(tags).split(' ')
} }
handleClickTagListItem (name) { handleClickTagListItem (name) {
@@ -301,7 +301,7 @@ class SideNav extends React.Component {
} else { } else {
listOfTags.push(tag) listOfTags.push(tag)
} }
router.push(`/tags/${listOfTags.map(tag => encodeURIComponent(tag)).join(' ')}`) router.push(`/tags/${encodeURIComponent(listOfTags.join(' '))}`)
} }
emptyTrash (entries) { emptyTrash (entries) {