Skip to content

Commit

Permalink
fix: proposal url formatting (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Jun 25, 2024
1 parent 41b5eb2 commit 8faf77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/Proposal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function governanceUrl(pathname = '') {
export function proposalUrl(id: ProposalAttributes['id']) {
const params = new URLSearchParams({ id })
const target = new URL(GOVERNANCE_URL)
target.pathname = '/proposal/'
target.pathname = (target.pathname.endsWith('/') ? '' : target.pathname) + '/proposal/'
target.search = '?' + params.toString()
return target.toString()
}
Expand Down

0 comments on commit 8faf77b

Please sign in to comment.