Skip to content
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

[BUG REPORT] Search redirect ignores site.url #876

Closed
jan-bures opened this issue Mar 2, 2025 · 2 comments
Closed

[BUG REPORT] Search redirect ignores site.url #876

jan-bures opened this issue Mar 2, 2025 · 2 comments
Labels

Comments

@jan-bures
Copy link

jan-bures commented Mar 2, 2025

Describe the bug
In system/htmly.php, calling get_search_query() before config('source', $config_file) results in search queries incorrectly redirecting to /search/* even when the base URL should not be /.

To Reproduce
Set site.url = "http://localhost/htmly/" in config.ini and use the search function. It will result in a redirect to http://localhost/search/search-term instead of http://localhost/htmly/search/search-term.

HTMLy Version
v3.0.4

Server Info (please complete the following information):

  • OS: Ubuntu 22.04
  • Webserver: nginx 1.27
  • PHP Version: 8.3
@jan-bures jan-bures added the bug label Mar 2, 2025
@danpros
Copy link
Owner

danpros commented Mar 2, 2025

Thanks for reporting this. The next maintenance release will fix it.

danpros added a commit that referenced this issue Mar 2, 2025
@danpros
Copy link
Owner

danpros commented Mar 4, 2025

This has been fixed in latest release. Thanks.

@danpros danpros closed this as completed Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants