Skip to content

Commit

Permalink
fix: category in route should encodeURLComponent
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jul 31, 2024
1 parent f51b1e2 commit d5b79cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/src/hooks/biz/useNavigateEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const navigateEntry = (options: NavigateEntryOptions) => {
finalFeedId = ROUTE_FEED_PENDING
}

finalFeedId = encodeURIComponent(finalFeedId)
const nextSearchParams = new URLSearchParams(searchParams)

if (!isUndefined(view)) {
Expand Down

0 comments on commit d5b79cb

Please sign in to comment.