Nginxy icon indicating copy to clipboard operation
Nginxy copied to clipboard

Sorting the directory listing breaks images for folders

Open kardo22 opened this issue 3 years ago • 1 comments

When clicking any sorting option in the directory listing the image icon for folder breaks and falls back to /images/icons/error.png , the default listing sort when opening the page freshly all folder images are working.

kardo22 avatar May 31 '22 17:05 kardo22

You can replace this line:

if ($(this).attr('href').substr($(this).attr('href').length - 1) == '/') {

with this:

var hrefWithoutQuery = $(this).attr('href').split('?')[0];
if (hrefWithoutQuery.substr(hrefWithoutQuery.length - 1) == '/') {

chapmanjacobd avatar Jan 06 '25 19:01 chapmanjacobd

Hey guys, I've updated the code and theme, and it's more modern now, I'm closing this issue.

Feel free to try it out and open a new one if you find some.

Thanks for the support.

lfelipe1501 avatar Feb 26 '25 01:02 lfelipe1501