Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-06 20:49:06 +0400
committerBart Visscher <bartv@thisnet.nl>2012-08-06 20:51:41 +0400
commitfe6450002d6059260c743f48b6f40378454fa1dc (patch)
treef373d737d78dcc7cc73a76c90db7fdfe5d9f1aa2 /apps/gallery
parente6759a980b3efe07c4a4c2e2769c2becc92df67d (diff)
Change hardcoded urls to use linkTo function
Diffstat (limited to 'apps/gallery')
-rw-r--r--apps/gallery/js/pictures.js4
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;
}