Skip to content

Commit

Permalink
Merge pull request kodadot#5598 from kodadot/fix/redirection-when-lis…
Browse files Browse the repository at this point in the history
…ted-true

fix: redirection when listed=true
  • Loading branch information
yangwao committed Apr 12, 2023
2 parents ae46dab + 2b48024 commit f91ae36
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/search/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ export default class Search extends mixins(
const { page, ...restQuery } = this.$route.query
this.$router
.replace({
path: this.isExplorePage
? String(this.$route.path)
: `/${this.urlPrefix}/explore/items`,
path: this.$route.path,
query: {
...restQuery,
search: this.searchQuery || this.$route.query.search || undefined,
Expand Down

0 comments on commit f91ae36

Please sign in to comment.