fix: external actions were assuming all actions are urls. Fixes #3213
This commit is contained in:
@@ -138,6 +138,8 @@ export const Content: FC = () => {
|
|||||||
|
|
||||||
const externalActionSelected = (action: ExternalAction) => {
|
const externalActionSelected = (action: ExternalAction) => {
|
||||||
const { openExternally, url } = action;
|
const { openExternally, url } = action;
|
||||||
|
|
||||||
|
if (url) {
|
||||||
const updatedUrl = new URL(url);
|
const updatedUrl = new URL(url);
|
||||||
updatedUrl.searchParams.append('instance', currentBrowserWindowUrl);
|
updatedUrl.searchParams.append('instance', currentBrowserWindowUrl);
|
||||||
|
|
||||||
@@ -160,6 +162,9 @@ export const Content: FC = () => {
|
|||||||
} else {
|
} else {
|
||||||
setExternalActionToDisplay(updatedAction);
|
setExternalActionToDisplay(updatedAction);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
setExternalActionToDisplay(action);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const incrementVisitCounter = () => {
|
const incrementVisitCounter = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user