diff --git a/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocExternalFilter.java b/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocExternalFilter.java index 8b2f4fce70d24..8dea831889921 100644 --- a/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocExternalFilter.java +++ b/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocExternalFilter.java @@ -103,8 +103,9 @@ protected RefConvertor[] getRefConverters() { String externalDoc = null; myElement = element; + String authority = "localhost:" + BuiltInServerOptions.getInstance().getEffectiveBuiltInServerPort(); String projectPath = "/" + myProject.getName() + "/"; - String builtInServer = "http://localhost:" + BuiltInServerOptions.getInstance().getEffectiveBuiltInServerPort() + projectPath; + String builtInServer = Urls.newHttpUrl(authority, projectPath).toExternalForm(); if (docURL.startsWith(builtInServer)) { Url url = Urls.parseFromIdea(docURL); if (url != null) {