[GH-ISSUE #85] Search not working with --render-try-index #35

Closed
opened 2026-04-08 16:49:56 +03:00 by zhus · 0 comments
Owner

Originally created by @mh166 on GitHub (Jul 2, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/85

First of all: thanks for this amazing little tool. I just discovered it a few minutes ago, but I already fell in love with it. Small, standalone, feature-rich aaaaand, at last, a file server with an easy upload function! Ticking all the right boxes for me! 👍

Now for the small problem I have...


Problem

I ran dufs with the following parameters:

$ dufs -A -p 8080 --render-try-index

Unfortunately, the search didn't work: whatever search term I entered, it would always just show the current directory's index. Also, it didn't matter if the search result would be within the current folder or in some directories below it.

Out of curiosity, I tried without --render-try-index and now the search function does work as expected (even recursively as I had hoped 🤓 ).

It would be great if we could use --render-try-index together with --allow-search. Index pages would take precedence and would deny any further processing of URL query parameters, such as ?q=.... But if no index file is found, the search should just work as if the --render-try-index option had not been set.

Log

N/A

Environment:

  • Dufs version: 0.23.1
  • Browser/Webdav Info: Chrome/101.0.4951.67
  • OS Info: Win10 21H2
Originally created by @mh166 on GitHub (Jul 2, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/85 First of all: thanks for this amazing little tool. I just discovered it a few minutes ago, but I already fell in love with it. Small, standalone, feature-rich aaaaand, at last, a file server with an easy upload function! Ticking all the right boxes for me! 👍 Now for the small problem I have... --- **Problem** I ran `dufs` with the following parameters: ``` $ dufs -A -p 8080 --render-try-index ``` Unfortunately, the search didn't work: whatever search term I entered, it would always just show the current directory's index. Also, it didn't matter if the search result would be within the current folder or in some directories below it. Out of curiosity, I tried without `--render-try-index` and now the search function does work as expected (even recursively as I had hoped 🤓 ). It would be great if we could use `--render-try-index` together with `--allow-search`. Index pages would take precedence and would deny any further processing of URL query parameters, such as `?q=...`. But if no index file is found, the search should just work as if the `--render-try-index` option had not been set. **Log** N/A **Environment:** - Dufs version: 0.23.1 - Browser/Webdav Info: Chrome/101.0.4951.67 - OS Info: Win10 21H2
zhus closed this issue 2026-04-08 16:49:56 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#35