diff --git a/src/mod/dynamicproxy/dpcore/dpcore.go b/src/mod/dynamicproxy/dpcore/dpcore.go index 4566769..23f1034 100644 --- a/src/mod/dynamicproxy/dpcore/dpcore.go +++ b/src/mod/dynamicproxy/dpcore/dpcore.go @@ -330,7 +330,10 @@ func (p *ReverseProxy) ProxyHTTP(rw http.ResponseWriter, req *http.Request, rrr locationRewrite := res.Header.Get("Location") originLocation := res.Header.Get("Location") res.Header.Set("zr-origin-location", originLocation) - + decodedOriginLocation, err := url.PathUnescape(originLocation) + if err == nil { + originLocation = decodedOriginLocation + } if strings.HasPrefix(originLocation, "http://") || strings.HasPrefix(originLocation, "https://") { //Full path //Replace the forwarded target with expected Host diff --git a/src/web/components/httprp.html b/src/web/components/httprp.html index 1809e1a..5310130 100644 --- a/src/web/components/httprp.html +++ b/src/web/components/httprp.html @@ -203,7 +203,7 @@ Destination Virtual Directory Tags - + @@ -588,7 +588,7 @@ --> - + `); }); diff --git a/src/web/index.html b/src/web/index.html index d87cb00..8f90e76 100644 --- a/src/web/index.html +++ b/src/web/index.html @@ -343,7 +343,9 @@ } $(editorSideWrapper).each(function(){ - $(this)[0].contentWindow.setDarkTheme(false); + if ($(this)[0].contentWindow.setDarkTheme){ + $(this)[0].contentWindow.setDarkTheme(false); + } }) if ($("#pluginContextLoader").is(":visible")){ @@ -356,7 +358,9 @@ $(".sideWrapper iframe")[0].contentWindow.setDarkTheme(true); } $(editorSideWrapper).each(function(){ - $(this)[0].contentWindow.setDarkTheme(true); + if ($(this)[0].contentWindow.setDarkTheme){ + $(this)[0].contentWindow.setDarkTheme(true); + } }) if ($("#pluginContextLoader").is(":visible")){ $("#pluginContextLoader")[0].contentWindow.setDarkTheme(true);