Skip to content
New issue

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

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

Already on GitHub? # to your account

site search issue on server of server #29

Closed
Ran-n opened this issue May 11, 2022 · 2 comments
Closed

site search issue on server of server #29

Ran-n opened this issue May 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Ran-n
Copy link
Contributor

Ran-n commented May 11, 2022

I have a particular issue and its that i have a server in my github base url that just links to various servers that are on other repositories.
The problem comes when i try to search on any of those other servers, when i do only the results for the base one are available (and the other servers have the site search enabled).

For a more hands on example, you can go to https://ran-n.github.io/subs/ and you can see how it only searches on the pages available for the server located in https://ran-n.github.io/.

Obviously, the search functions perpectly when used on a local production server.

@kaiiiz
Copy link
Owner

kaiiiz commented Jun 2, 2022

After doing some testing, I found the issue is related to relativeURLs and canonifyURLs in your config. The current implementation of retrieving the URL of the index file is using the relLangURL function provided by hugo. However, relLangURL behaves unnormal and doesn't respect the baseURL setting if one of the above options is enabled.

It seems that using absLangURL doesn't encounter this issue so maybe a quick fix is to change the index retrieving process from relLangURL to absLangURL. I also consider replacing all of the relURL with absURL as I didn't notice such a problem before.

@kaiiiz kaiiiz added the bug Something isn't working label Jun 2, 2022
@kaiiiz
Copy link
Owner

kaiiiz commented Jul 23, 2023

Fixed in v2.0.0.

@kaiiiz kaiiiz closed this as completed Jul 23, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants