Nginxy
Nginxy copied to clipboard
Sorting the directory listing breaks images for folders
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.
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) == '/') {
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.