Skip to content

Commit

Permalink
limit the document.referrer to 256 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMilord committed Oct 4, 2024
1 parent bc54381 commit 22fd9c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class QuanticCaseAssistInterface extends LightningElement {
analytics: {
analyticsMode: 'legacy',
...(document.referrer && {
originLevel3: document.referrer,
originLevel3: document.referrer.substring(0, 256),
}),
},
...rest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class QuanticInsightInterface extends LightningElement {
analytics: {
analyticsMode: 'legacy',
...(document.referrer && {
originLevel3: document.referrer,
originLevel3: document.referrer.substring(0, 256),
}),
},
...rest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export default class QuanticSearchInterface extends LightningElement {
},
analytics: {
analyticsMode: 'legacy',
...(document.referrer && {originLevel3: document.referrer}),
...(document.referrer && {
originLevel3: document.referrer.substring(0, 256),
}),
},
...rest,
},
Expand Down

0 comments on commit 22fd9c4

Please sign in to comment.