diff --git a/platform/platform-impl/src/com/intellij/ide/gdpr/ui/HtmlRtfPaneConverter.kt b/platform/platform-impl/src/com/intellij/ide/gdpr/ui/HtmlRtfPaneConverter.kt index cf2a7975c850..3f0521734b04 100644 --- a/platform/platform-impl/src/com/intellij/ide/gdpr/ui/HtmlRtfPaneConverter.kt +++ b/platform/platform-impl/src/com/intellij/ide/gdpr/ui/HtmlRtfPaneConverter.kt @@ -1,6 +1,10 @@ // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. + +// Modified by Nikita Iarychenko at 2026 as part of the OpenIDE project(https://openide.ru). +// Any modifications are available on the same license terms as the original source code. package com.intellij.ide.gdpr.ui +import com.intellij.ide.BrowserUtil import org.jsoup.Jsoup import org.jsoup.nodes.Element import org.jsoup.nodes.TextNode @@ -85,7 +89,7 @@ class HtmlRtfPane { val range = linkMap.keys.firstOrNull { it.contains(resultPane.viewToModel(location)) } ?: return val link = linkMap[range] ?: return if (Desktop.isDesktopSupported()) { - Desktop.getDesktop().browse(URI(link)) + BrowserUtil.browse(link) } } }