diff --git a/src/renderer/src/components/MinApp/index.tsx b/src/renderer/src/components/MinApp/index.tsx index 5b66329c01..3cb67076d7 100644 --- a/src/renderer/src/components/MinApp/index.tsx +++ b/src/renderer/src/components/MinApp/index.tsx @@ -49,7 +49,10 @@ const PopupContainer: React.FC = ({ app, resolve }) => { } const onOpenLink = () => { - window.api.openWebsite(app.url) + if (webviewRef.current) { + const currentUrl = webviewRef.current.getURL() + window.api.openWebsite(currentUrl) + } } const onTogglePin = () => {