Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsolo committed Feb 7, 2024
1 parent ef734c7 commit 3d97d1a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class ConnectedSearchBar extends Component {
const pathname = '/search'
if (value.startsWith('#')) {
// perform tag search
const pathname = `/search`
this.props.history.push({
hash: value.split('#')[1].replace(/\s+/g, ''),
pathname,
Expand All @@ -91,7 +90,7 @@ class ConnectedSearchBar extends Component {
} else {
value = encodeURIComponent(value)
this.props.history.push({
pathname: pathname + value,
pathname: pathname + '/' + value,
state: {}
})
}
Expand Down

0 comments on commit 3d97d1a

Please sign in to comment.