|
@@ -10,6 +10,7 @@ import getRouteStringFromRoutes from 'sentry/utils/getRouteStringFromRoutes';
|
|
import {getTransactionDetailsUrl} from 'sentry/utils/performance/urls';
|
|
import {getTransactionDetailsUrl} from 'sentry/utils/performance/urls';
|
|
import {generateProfileFlamechartRoute} from 'sentry/utils/profiling/routes';
|
|
import {generateProfileFlamechartRoute} from 'sentry/utils/profiling/routes';
|
|
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
|
|
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
|
|
|
|
+import {normalizeUrl} from 'sentry/utils/withDomainRequired';
|
|
import {getTraceDetailsUrl} from 'sentry/views/performance/traceDetails/utils';
|
|
import {getTraceDetailsUrl} from 'sentry/views/performance/traceDetails/utils';
|
|
|
|
|
|
export enum DisplayModes {
|
|
export enum DisplayModes {
|
|
@@ -175,7 +176,7 @@ export function generateReplayLink(routes: PlainRoute<any>[]) {
|
|
const referrer = getRouteStringFromRoutes(routes);
|
|
const referrer = getRouteStringFromRoutes(routes);
|
|
|
|
|
|
return (
|
|
return (
|
|
- _: Organization,
|
|
|
|
|
|
+ organization: Organization,
|
|
tableRow: TableDataRow,
|
|
tableRow: TableDataRow,
|
|
_query: Query | undefined
|
|
_query: Query | undefined
|
|
): LocationDescriptor => {
|
|
): LocationDescriptor => {
|
|
@@ -186,7 +187,9 @@ export function generateReplayLink(routes: PlainRoute<any>[]) {
|
|
|
|
|
|
if (!tableRow.timestamp) {
|
|
if (!tableRow.timestamp) {
|
|
return {
|
|
return {
|
|
- pathname: `/replays/${replayId}/`,
|
|
|
|
|
|
+ pathname: normalizeUrl(
|
|
|
|
+ `/organizations/${organization.slug}/replays/${replayId}/`
|
|
|
|
+ ),
|
|
query: {
|
|
query: {
|
|
referrer,
|
|
referrer,
|
|
},
|
|
},
|
|
@@ -199,7 +202,7 @@ export function generateReplayLink(routes: PlainRoute<any>[]) {
|
|
: undefined;
|
|
: undefined;
|
|
|
|
|
|
return {
|
|
return {
|
|
- pathname: `/replays/${replayId}/`,
|
|
|
|
|
|
+ pathname: normalizeUrl(`/organizations/${organization.slug}/replays/${replayId}/`),
|
|
query: {
|
|
query: {
|
|
event_t: transactionStartTimestamp,
|
|
event_t: transactionStartTimestamp,
|
|
referrer,
|
|
referrer,
|