From 8faf77b5bc7ba1b14c728a1d92687b1ad282d6d9 Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Tue, 25 Jun 2024 11:54:22 -0300 Subject: [PATCH] fix: proposal url formatting (#1872) --- src/entities/Proposal/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/Proposal/utils.ts b/src/entities/Proposal/utils.ts index df6487932..6d7facb78 100644 --- a/src/entities/Proposal/utils.ts +++ b/src/entities/Proposal/utils.ts @@ -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() }