Skip to content

BUG: WebSearch Url Open Issue #3608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
IamWiseDev opened this issue Jun 2, 2025 · 7 comments · May be fixed by #3616
Open
2 tasks done

BUG: WebSearch Url Open Issue #3608

IamWiseDev opened this issue Jun 2, 2025 · 7 comments · May be fixed by #3616
Labels
bug Something isn't working

Comments

@IamWiseDev
Copy link

IamWiseDev commented Jun 2, 2025

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

I have a html file. when I add the file as a new search engine it doesn't work.

To Reproduce

  1. Go to the plugin settings of web search plugin.
  2. Add a new search engine.
  3. Set the URL to something like "file:///D:/search/index.html?query={q}"
  4. Search anything, for example casino. Instead of opening "file:///D:/search/index.html?query=casino" it opens "file:///D:/search/index.html"

Screenshots

No response

Flow Launcher Version

1.19.5

Windows Build Number

windows 11 - 10.0.26100.4202

Error Log

@IamWiseDev IamWiseDev added the bug Something isn't working label Jun 2, 2025
@Jack251970
Copy link
Member

Jack251970 commented Jun 3, 2025

Could you please provide your settings file?

%AppData\Roaming\FlowLauncher\Settings\Settings.json &
%AppData\Roaming\FlowLauncher\Settings\Plugins\Flow.Launcher.Plugin.WebSearch\Settings.json

@Jack251970 Jack251970 added the Waiting for response Waiting for poster to respond to Team message label Jun 3, 2025
@IamWiseDev
Copy link
Author

IamWiseDev commented Jun 3, 2025

Could you please provide your settings file?

%AppData\Roaming\FlowLauncher\Settings\Settings.json & %AppData\Roaming\FlowLauncher\Settings\Plugins\Flow.Launcher.Plugin.WebSearch\Settings.json

there isnt any settings.json in the plugin folder, maybe this is what you want:

Flow.Launcher.Plugin.WebSearch.deps.json

Settings.json

Edit: I probably found it-

Settings.json

@Jack251970 Jack251970 removed the Waiting for response Waiting for poster to respond to Team message label Jun 3, 2025
@Jack251970
Copy link
Member

I think file:///D:/search/index.html?query=casino is not a valid web url, so Flow cannot handle it

@IamWiseDev
Copy link
Author

I think file:///D:/search/index.html?query=casino is not a valid web url, so Flow cannot handle it

It is valid, when I just copy paste this in my browser it works perfectly fine.

@Jack251970
Copy link
Member

Jack251970 commented Jun 3, 2025

In basic url process of C#, its scheme is "file" and its absolute path is that. So Flow will use shell to open it.

Image

@IamWiseDev
Copy link
Author

In basic detection process of C#, its scheme is "file" and its absolute path is that. So Flow will use shell to open it.

Image

So can this be fixed??

@Jack251970
Copy link
Member

I am considering to add a new api function for that. I know where the reason is.

@Jack251970 Jack251970 changed the title BUG: cant add search in a file. with web search BUG: WebSearch Url Open Issue Jun 3, 2025
@Jack251970 Jack251970 linked a pull request Jun 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants