]> source.dussan.org Git - nextcloud-server.git/commit
Use hash part of URL for IE8 in files app
authorVincent Petry <PVince81@yahoo.fr>
Thu, 29 Aug 2013 19:56:14 +0000 (21:56 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 13 Sep 2013 18:48:35 +0000 (20:48 +0200)
commit30a2f2f35282a4414269a7650513348b99fb7965
tree161532849c1fd00574b517070ae0f594377cac3e
parent4d38441e72f3825006ea034b18390bc22a3d9e97
Use hash part of URL for IE8 in files app

Before this fix, the URL wasn't updated in IE8 when navigating into
folders.

This fix makes use of the hash part of URLs to make this work in IE8,
since IE8 doesn't support the history API nor changing the URL without
redirecting.

From now, both the regular query URL "?dir=somedir" and "#?dir=somedir"
will work in both IE8 and non-IE8 browsers.

In IE8, query based URLs are automatically converted to hash URLs upon
page load. The conversion is done on the server side by redirecting the
user to the updated URL.

When loading a page directly using a hash URL in the form
"#?dir=somedir" in IE8, the server doesn't get the hash, so it will not
return any results in that case and rely on ajax to load the first page.
apps/files/index.php
apps/files/js/filelist.js
apps/files/templates/index.php
apps/files_trashbin/js/filelist.js