We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3890faa commit d5974c9Copy full SHA for d5974c9
1 file changed
backend/src/lib/claim.ts
@@ -72,7 +72,9 @@ export function validateAirdropStatus(airdropStatus: AirdropStatus) {
72
73
export function parseUrl(token: string) {
74
const appUrl = new URL(env.APP_URL);
75
+ const basePath = appUrl.pathname.replace(/\/$/, ''); // Remove trailing slash if present
76
+ appUrl.pathname = `${basePath}/claim`; // Append '/claim' to the path
77
appUrl.searchParams.set('nftToken', token);
78
- return `${appUrl.origin}/claim?${appUrl.searchParams.toString()}`;
79
+ return appUrl.toString(); // Return the full URL as a string
80
}
0 commit comments