🐛 Fix external url

This commit is contained in:
Manuel Ruwe
2022-12-30 16:53:47 +01:00
parent fe662ab166
commit 123d6d72f5
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ export const AppTile = ({ className, app }: AppTileProps) => {
<UnstyledButton
style={{ pointerEvents: isEditMode ? 'none' : 'auto' }}
component={NextLink}
href={app.url}
href={app.behaviour.externalUrl ?? app.url}
target={app.behaviour.isOpeningNewTab ? '_blank' : '_self'}
className={cx(classes.button, classes.link)}
>

View File

@@ -16,7 +16,7 @@ export type ConfigAppType = Omit<AppType, 'integration'> & {
};
interface AppBehaviourType {
externalUrl: string;
externalUrl?: string;
isOpeningNewTab: boolean;
}