Commit e79dcdaf authored by Romain Courteaud's avatar Romain Courteaud

[erp5_officejs_appstore_base] Keep the url hash while redirecting to the latest version

parent a98c1060
......@@ -3,7 +3,7 @@
<body>
<script language="JavaScript">
function redirect_version() {
document.location.replace("${latest_version}/")
document.location.replace("${latest_version}/" + document.location.hash)
};
window.applicationCache.addEventListener('cached',redirect_version);
window.applicationCache.addEventListener('noupdate',redirect_version);
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>959.46591.59882.45141</string> </value>
<value> <string>959.46608.34939.31368</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1496147551.92</float>
<float>1497604340.46</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -13,4 +13,4 @@ response.setHeader('Content-Type', 'text/cache-manifest')
response.setHeader('Cache-Control', 'max-age=0, public, must-revalidate')
return """CACHE MANIFEST
# %s""" % context.getLayoutProperty("configuration_latest_version", default="development")
# %s + hash""" % context.getLayoutProperty("configuration_latest_version", default="development")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment