*******************************************************************************/
package net.sourceforge.phpeclipse.webbrowser.views;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import java.nio.charset.Charset;
+
import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowser;
import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowserUtil;
setUrl(url);
} else {
Browser browser = fInstance.getBrowser();
- if (browser != null && !browser.getUrl().equals(url)) {
- setUrl(url);
+ if (browser != null) {
+ String browserUrl = browser.getUrl();
+ try {
+ browserUrl = URLDecoder.decode(browserUrl, Charset.defaultCharset().name());
+ } catch (UnsupportedEncodingException e) {
+ // e.printStackTrace();
+ }
+ if (!url.equals(browserUrl)) {
+ setUrl(url);
+ }
}
}
}