Skip to content

Commit

Permalink
Wraps all links even internal ones for click tracking (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Apr 5, 2024
1 parent d862de3 commit cd1e255
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/platform/src/render/LinkService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ export const clickWrapHtml = (html: string, params: TrackedLinkParams) => {
while ((link = regex.exec(html)) !== null) {
const redirect = link[2]

// Don't wrap already wrapped links
if (redirect.startsWith(App.main.env.baseUrl)) continue

// Otherwise create a link wrapper around the value
html = html.replace(
redirect,
Expand Down

0 comments on commit cd1e255

Please sign in to comment.