We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439af85 commit 2f8d01dCopy full SHA for 2f8d01d
1 file changed
code/core/src/manager-api/modules/refs.ts
@@ -81,10 +81,8 @@ export const getSourceType = (source: string, refId?: string) => {
81
const { origin: localOrigin, pathname: localPathname } = location;
82
const { origin: sourceOrigin, pathname: sourcePathname } = new URL(source);
83
84
- const localFull = `${localOrigin + localPathname}`.replace('/iframe.html', '').replace(/\/$/, '');
85
- const sourceFull = `${sourceOrigin + sourcePathname}`
86
- .replace('/iframe.html', '')
87
- .replace(/\/$/, '');
+ const localFull = `${localOrigin + localPathname}`.replace(/\/[^\/]*$/, '');
+ const sourceFull = `${sourceOrigin + sourcePathname}`.replace(/\/[^\/]*$/, '');
88
89
if (localFull === sourceFull) {
90
return ['local', sourceFull];
0 commit comments