Closed s2t2 closed 4 months ago
It seems like if I add an "id" attribute, the page will start being clickable?
- section:
id: pip
href: notes/dev-tools/pip.qmd
I guess this is a hacky workaround?
I guess text will make the entry work as well:
- section:
text: "Package Installation with Pip"
href: notes/dev-tools/pip.qmd
This will NOT work though?
- section: index.qmd
text: "Preface"
So it needs an href?
This works:
- section:
href: notes/dev-tools/pip.qmd
You stated "Website Sidebar Links Not Working for some pages" but you did not provide a reproducible example.
sections
are supposed to delimit contents, not be contents on their own.
So from your snippet, I believe all sections without contents don't have links.
Input | Output |
---|---|
```sh quarto create project website issue-10102 Issue-10102 ``` With `_quarto.yml`: ````qmd project: type: website website: title: "Issue -10102" navbar: left: - href: index.qmd text: Home - about.qmd sidebar: contents: - section: Redirection to about.qmd # working fine href: about.qmd contents: - index.qmd - section: about.qmd # Working fine contents: - index.qmd - section: about.qmd # This is the section that is not working - about.qmd # Working fine - text: Redirection to about.qmd # Working fine href: about.qmd format: html: theme: cosmo css: styles.css toc: true ```` | https://github.com/quarto-dev/quarto-cli/assets/8896044/c80e2286-e918-4bdb-8294-34a10e45c417 |
I suggest you replace - section: about.qmd # This is the section that is not working
with - about.qmd
which is the correct syntax.
Bug description
Unable to click links in sidebar.
Next page navigation will get to the page though. And direct navigation via URL bar will get to the page. But the sidebar text is not a hyperlink as it should be.
Steps to reproduce
Contents of "_quarto.yml":
Buggy Sidebar nav, only pages with dropdowns are clickable:
Expected behavior
See page name in left side bar. Click it and visit the page.
Actual behavior
See page name in left sidebar. But there is no link and it is not possible to click.
Your environment
No response
Quarto check output