Skip to content

Commit 918b792

Browse files
committed
fix: url paths
1 parent c65e766 commit 918b792

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/useRedirects.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ export const deleteRedirect = async (redirectId: string) => {
3232
};
3333

3434
export const getRedirectQrCodeUrl = (redirectId: string) => {
35-
return `${baseUrl}api/v1/redirects/${redirectId}/qr`;
35+
return `${baseUrl}/api/v1/redirects/${redirectId}/qr`;
3636
};
3737

3838
export const getRedirectQrCodeDataUrl = (redirectId: string) => {
39-
return `${baseUrl}l/${redirectId}?utm_medium=novu_link_qr_code`;
39+
return `${baseUrl}/l/${redirectId}?utm_medium=novu_link_qr_code`;
4040
};
4141

4242
export const getRedirectUrl = (redirectId: string) => {
43-
return `${baseUrl}l/${redirectId}`;
43+
return `${baseUrl}/l/${redirectId}`;
4444
};
4545

4646
export const addRedirectEndpoint = async (

0 commit comments

Comments
 (0)