diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-06 20:49:06 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-06 20:51:41 +0400 |
commit | fe6450002d6059260c743f48b6f40378454fa1dc (patch) | |
tree | f373d737d78dcc7cc73a76c90db7fdfe5d9f1aa2 /apps/gallery | |
parent | e6759a980b3efe07c4a4c2e2769c2becc92df67d (diff) |
Change hardcoded urls to use linkTo function
Diffstat (limited to 'apps/gallery')
-rw-r--r-- | apps/gallery/js/pictures.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/js/pictures.js b/apps/gallery/js/pictures.js index 91fbf5be967..47f727e0dee 100644 --- a/apps/gallery/js/pictures.js +++ b/apps/gallery/js/pictures.js @@ -61,8 +61,8 @@ function deplode(element) { function openNewGal(album_name) { root = root + decodeURIComponent(album_name) + "/"; - var url = window.location.toString().replace(window.location.search, ''); - url = url + "?app=gallery&root="+encodeURIComponent(root); + var url = window.location.protocol+"//"+window.location.hostname+OC.linkTo('gallery', 'index.php'); + url = url + "?root="+encodeURIComponent(root); window.location = url; } |