Skip to content

Commit

Permalink
fix: url paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 24, 2024
1 parent c65e766 commit 918b792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/useRedirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ export const deleteRedirect = async (redirectId: string) => {
};

export const getRedirectQrCodeUrl = (redirectId: string) => {
return `${baseUrl}api/v1/redirects/${redirectId}/qr`;
return `${baseUrl}/api/v1/redirects/${redirectId}/qr`;
};

export const getRedirectQrCodeDataUrl = (redirectId: string) => {
return `${baseUrl}l/${redirectId}?utm_medium=novu_link_qr_code`;
return `${baseUrl}/l/${redirectId}?utm_medium=novu_link_qr_code`;
};

export const getRedirectUrl = (redirectId: string) => {
return `${baseUrl}l/${redirectId}`;
return `${baseUrl}/l/${redirectId}`;
};

export const addRedirectEndpoint = async (
Expand Down

0 comments on commit 918b792

Please sign in to comment.