Closed rmoff closed 1 year ago
ref also #5484
The redirect for /quickstart/run.html
is actually there, but in the wrong path
This looks like a bigger issue with redirects across the docs site. Here's another example:
New: https://docs.lakefs.io/reference/cli.html Old: https://docs.lakefs.io/reference/commands.html
Redirect code: https://github.com/treeverse/lakeFS/blob/master/docs/reference/cli.md?plain=1#L9
But there's no redirect - https://docs.lakefs.io/reference/commands.html serves up the page as it was before being renamed.
Looking at the live docs repo site both files are still live (with no redirect)
The clue of what's going on is here:
The redirect file is under /
(incorrect) and not /reference
(where it should be)
This is confirmed by inspecting the redirect.json
that the Jeykll plugin creates on site build:
It looks like the redirect_from
syntax requires absolute pathing and not relative.
This front matter config in reference/cli.md
…
redirect_from:
- /reference/commands.html
… creates _site/reference/commands.html
whilst this (the existing) in the same file (reference/cli.md
) …
redirect_from:
- ./commands.html
… creates _site/commands.html
There's a redirect but it doesn't look like it's working:
https://github.com/treeverse/lakeFS/blob/master/docs/quickstart/index.md?plain=1#L15