Closed marco-primiceri closed 6 years ago
The Change link in the filelisting template populates the dir parameter using query_string, this works fine when the search result is in the current folder but creates an invalid URL when the result is in a sub-folder.
dir
query_string
Given this tree structure:
brands - all_brands_logo.jpg - acura - logo.jpg - alfa_romeo - logo.jpg - aston_martin - ...
Searching for logo within the brands folder will return the following: Current URL: /admin/filebrowser/browse/?q=logo&dir=brands
logo
brands
Filename: logo_brands_diagram.jpg Folder: brands Change link: /admin/filebrowser/detail/?q=logo&dir=brands&filename=all_brands_logo.jpg ==> OK
Filename: logo.jpg Folder: brands/acura Change link: /admin/filebrowser/detail/?q=logo&dir=brands&filename=logo.jpg ==> BROKEN
fixed with stable/3.10.x
The Change link in the filelisting template populates the
dir
parameter usingquery_string
, this works fine when the search result is in the current folder but creates an invalid URL when the result is in a sub-folder.Example
Given this tree structure:
Searching for
logo
within thebrands
folder will return the following: Current URL: /admin/filebrowser/browse/?q=logo&dir=brandsFilename: logo_brands_diagram.jpg Folder: brands Change link: /admin/filebrowser/detail/?q=logo&dir=brands&filename=all_brands_logo.jpg ==> OK
Filename: logo.jpg Folder: brands/acura Change link: /admin/filebrowser/detail/?q=logo&dir=brands&filename=logo.jpg ==> BROKEN