Skip to content

Commit

Permalink
update helper function
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Tackett <[email protected]>
  • Loading branch information
Adam Tackett committed Jan 7, 2025
1 parent 411c523 commit 4ee5670
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,7 @@ export const appendModeToTraceViewUri = (
traceMode?: string | null
): string => {
const baseUri = getTraceViewUri ? getTraceViewUri(traceId) : '';
const isHashRouter = baseUri.includes('#');
const separator = isHashRouter
? baseUri.includes('?')
? '&'
: '?'
: baseUri.includes('?')
? '&'
: '?';
const separator = baseUri.includes('?') ? '&' : '?';

if (traceMode) {
return `${baseUri}${separator}mode=${encodeURIComponent(traceMode)}`;
Expand Down

0 comments on commit 4ee5670

Please sign in to comment.