HTTP redirection to files in firefox

General discussion related to "Everything".
Post Reply
leml
Posts: 6
Joined: Thu Sep 04, 2025 10:14 pm

HTTP redirection to files in firefox

Post by leml »

If you're using everything http server and firefox to browse and search files, you can enable automatic redirection of files.
Go to about:profiles and find root directory of your firefox profile.
Add the following in user.js in the root directory with the following:

Code: Select all

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost:8080");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
Replace 8080 with whatever port your everything http server is running at.
Next use https://github.com/einaregilsson/Redirector and make the configuration

include pattern: ^https?:\/\/localhost:8080\/([^?\/][^?]*)$
Redirect to: file://$1

This will redirect every link that isn't /?search=something to its file url.
leml
Posts: 6
Joined: Thu Sep 04, 2025 10:14 pm

Re: HTTP redirection to files in firefox

Post by leml »

Actually seeing weird quirks in the URL decode option when folders have special characters. Would be great if the server tried to redirect the file url itself.
Post Reply