From 2e32574bdfe06ef04cf1f31ca7225411df7ab992 Mon Sep 17 00:00:00 2001 From: Alexander Doroshko Date: Wed, 7 Dec 2011 20:36:02 +0400 Subject: [PATCH] IDEA-60813 View External Documentation doesn't work at the member level --- platform/platform-api/src/com/intellij/ide/BrowserUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/ide/BrowserUtil.java b/platform/platform-api/src/com/intellij/ide/BrowserUtil.java index 1636f5f63d93..1fae47755094 100644 --- a/platform/platform-api/src/com/intellij/ide/BrowserUtil.java +++ b/platform/platform-api/src/com/intellij/ide/BrowserUtil.java @@ -105,7 +105,8 @@ public class BrowserUtil { else { commandLine = new String[command.length + 1]; System.arraycopy(command, 0, commandLine, 0, command.length); - commandLine[commandLine.length - 1] = escapeUrl(urlString); + commandLine[commandLine.length - 1] = SystemInfo.isMac && isUseDefaultBrowser() ? escapeUrl(redirectUrl(url, urlString)) + : escapeUrl(urlString); } Runtime.getRuntime().exec(commandLine); if (LOG.isDebugEnabled()) {