فهرست منبع

HUE-3153 [fb] Fix issue where history included a leading =

Johan Ahlen 9 سال پیش
والد
کامیت
419ed7c4d0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/filebrowser/src/filebrowser/templates/listdir_components.mako

+ 1 - 1
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -651,7 +651,7 @@ from django.utils.translation import ugettext as _
       if (path != '/filebrowser/') {
       if (path != '/filebrowser/') {
         var _basePath = '${url('filebrowser.views.view', path='')}';
         var _basePath = '${url('filebrowser.views.view', path='')}';
         if (path.indexOf(_basePath) > -1) {
         if (path.indexOf(_basePath) > -1) {
-          path = path.substr(_basePath.length - 1);
+          path = path.substr(_basePath.length);
         }
         }
 
 
         // ensure no duplicates are pushed to $.totalStorage()
         // ensure no duplicates are pushed to $.totalStorage()