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

"go to latest [version]" links send you to the home page, not your current doc page #115

Open
GraemeMeyerGT opened this issue Feb 2, 2024 · 0 comments

Comments

@GraemeMeyerGT
Copy link
Contributor

The "Click here to go to latest. [version]" links at the top of the docs site send you back to https://docs.opencti.io/latest/, rather than sending you to the latest version of whatever page you're on.

E.g. If I'm on https://docs.opencti.io/5.11.X/deployment/authentication/, and I click the go-to-latest link, I would expect to go to https://docs.opencti.io/latest/deployment/authentication/, but am actually sent to https://docs.opencti.io/, which redirects to https://docs.opencti.io/latest.

image

I had a quick look at the code and I would guess the problem is in the overrides for main.html here:

<a href="{{ '../' ~ base_url }}">

It looks like you're using GitHub pages for the site, which if I'm understanding it correctly uses Jekyll, which uses Liquid variable templates. I've not quite been able to determine how to fix this, but it could be as simple as replacing base_url with another variable - I've seen some suggestion that actually it might be baseurl, but not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant