Fixes issue of rendering the umb version in the html markup

This commit is contained in:
Shannon
2017-06-15 00:04:42 +02:00
parent 51b19bedc8
commit c13b2fae4b
4 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ angular.module("umbraco.viewcache", [])
$delegate.get = function (url, config) {
if (Umbraco.Sys.ServerVariables.application && url.startsWith("views/") && url.endsWith(".html")) {
var rnd = Umbraco.Sys.ServerVariables.application.version + "." + Umbraco.Sys.ServerVariables.application.cdf;
var rnd = Umbraco.Sys.ServerVariables.application.versionHash;
var _op = (url.indexOf("?") > 0) ? "&" : "?";
url += _op + "umb__rnd=" + rnd;
}

View File

@@ -50,7 +50,7 @@ angular.module('umbraco.services')
return url;
}
var rnd = Umbraco.Sys.ServerVariables.application.version + "." + Umbraco.Sys.ServerVariables.application.cdf;
var rnd = Umbraco.Sys.ServerVariables.application.versionHash;
var _op = (url.indexOf("?") > 0) ? "&" : "?";
url = url + _op + "umb__rnd=" + rnd;
return url;