jbmestelan / nyxt

Nyxt - Be productive.
https://nyxt.atlas.engineer
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fix issue with empty fallback-url in search-engine #6

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR fixes an issue where the fallback-url in the search-engine class does not correctly handle the case when it is empty. According to the documentation, if the fallback-url is empty, the search-url should be used on an empty search query. However, the current implementation results in a blank page being loaded instead. This PR addresses this issue by modifying the fallback-url method and the valid-url-p function to handle the empty fallback-url case correctly.

Summary of Changes

This PR ensures that the search-url is correctly used when the fallback-url is empty, preventing a blank page from being loaded.

Fixes #5.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-empty-fallback-url

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can: