-
Notifications
You must be signed in to change notification settings - Fork 96
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
Navigation links do not work on a search result page when the SPARQL query returns a 404 error #693
Comments
Hmm interesting, I think you are correct. The navigation links are indeed missing the request language, which causes the links to break down. I'll try to figure out why the request languages are missing. |
The "Pas de vocabulaires sur le serveur !" text makes me wonder if the vocabularies.ttl parsing fails for some reason. It also seems that the Request object returns "" when language, content language or the vocabulary getters are used. Are there any clues in the apache error log? |
Actually I am debugging this right now, it seems a SPARQL query in the search fails, which actually causes a 404 error to be returned : https://github.com/NatLibFi/Skosmos/blob/master/controller/WebController.php#L437 |
@tfrancart Is this still a problem or can the issue be closed? |
This should be rephrased as : "Navigation links do not work on a search result page when the SPARQL query returns a 404 error". This is somehow related to the line pointed in the previous comment. |
At which URL did you encounter the problem?
http://erato.sparna.fr/authority/legal-subject-theme/fr/search?clang=fr&q=this.returns.no.results
What steps will reproduce the problem?
What is the expected output? What do you see instead?
The links start with "/", like "/about", and are not pointing to the correct path. They sould be prepended by the request language, I think.
It works when the search return some results : http://erato.sparna.fr/authority/legal-subject-theme/fr/search?clang=fr&q=service
However I don't have the same behavior when looking at other skosmos deployments, like vocabularies.unesco.org or finto.fi.
What am I missing ?
The text was updated successfully, but these errors were encountered: