quarto-dev / quarto-dev/quarto-cli
`target` parameter not working on dropdown items on top navigation bar
Open
@cscheid is already working on this.
Since Jun 5, 2024.
bug
websites
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
There is target option on navigation link which allows to open links in new window, but it's not working on dropdown menus.
Steps to reproduce
_quarto.yml:
project:
type: website
website:
title: "Test"
page-navigation: true
navbar:
left:
- text: "External"
href: "http://example.com"
target: "_blank"
- sidebar:drop
sidebar:
- id: drop
title: "Dropdown"
contents:.
- text: "External not working"
href: "http://example.com"
target: "_blank"
format:
html: default
index.qmd:
---
title: Test
---
# Header
run quarto render
open _site/index.html
Click on link "External" -- opens on new page
Click on link "External not working" -- opens on the same page
Expected behavior
Option target working on dropdown menu items
Actual behavior
Option target not working on dropdown menu items
Your environment
Quarto 1.5.25
Quarto check output
Quarto 1.5.25
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.5.25
Path: /opt/quarto/bin
[✓] Checking tools....................OK
Chromium: 869685
TinyTeX: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /usr/bin
Version: undefined
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.8
Path: /usr/bin/python3
Jupyter: 5.7.2
Kernels: haskell, python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /usr/lib64/R
LibPaths:
- /home/andrei/R/x86_64-pc-linux-gnu-library/4.3
- /usr/lib/R/library
knitr: 1.45
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.