mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #613] Make noscript mode create noscript links for directories #368
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andoalon on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/613
Specific Demand
I was trying out the
?noscriptparameter, and it works like a charm, but I found a bit surprising how it behaves when clicking on directories: after the new load, the page goes back to the "normal" mode (with javascript).If the noscript mode is detected based on the browser/browser settings, this doesn't happen, but I would expect that, at least if I manually specified the
?noscriptparameter, that if would carry on to directories I click on.Implement Suggestion
A basic fix would be to add a
?noscriptinrender_path_item(noscript.rs), like so:This however does not differentiate between the case in which
?noscriptwas specified manually and when it was simply detected. I personally don't care about this difference: I would be fully satisfied with the solution I propose, but I wanted to hear your thoughts.Thank you
@sigoden commented on GitHub (Aug 16, 2025):
I don't understand in what situations the noscript parameter needs to be set manually.
@andoalon commented on GitHub (Aug 16, 2025):
To be honest I don't really see too much of a use-case to it, but when I did specify it manually to see how the result looked, I got surprised that it didn't stay the same after opening a directory 🤷🏻♂️😅
Thank you for taking a look at this