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

Fix sidebar support for empty links (/doc/ trailing slash issue) #1265

Merged
merged 2 commits into from
May 8, 2020

Conversation

rogermparent
Copy link
Contributor

There was a hard-coded /doc/ prepended to every path before, but now we start
with /doc and add a second slash only if something comes after.

This is a quick fix, but this problem stems from the sidebar.json setup still having influence in many places of the site. Ideally it should be just be the canonical ToC and have nothing to do with link generation, but that's a problem for another time.

fixes #1264

There was a hard-coded `/doc/` prepended to every path before, but now we start
with `/doc` and add a second slash only if something comes after.
@shcheklein shcheklein temporarily deployed to dvc-landing-fix-doc-hom-vtr2dn May 8, 2020 04:39 Inactive
@rogermparent rogermparent marked this pull request as draft May 8, 2020 04:40
@rogermparent rogermparent temporarily deployed to dvc-landing-fix-doc-hom-vtr2dn May 8, 2020 05:00 Inactive
@rogermparent rogermparent marked this pull request as ready for review May 8, 2020 05:00
Copy link
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rogermparent! This seems to fix it, at least what I reported in #1257 (comment)

@shcheklein shcheklein merged commit 3431b82 into master May 8, 2020
@shcheklein
Copy link
Member

thanks @rogermparent 🙏

@shcheklein shcheklein deleted the fix-doc-home-trailing-slash branch February 28, 2021 19:36
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

Successfully merging this pull request may close these issues.

Problems with trailing slashes on the new docs path
3 participants