Skip to content

Brand: logo paths are resolved incorrectly for documents in sub directories #11982

Open
@gadenbuie

Description

@gadenbuie

Bug description

Originally posted in posit-dev/brand-yml#66 (comment) by @szimmer:

I have an images folder in the root of a quarto site project. I then wanted to have subdirectories and some .qmd files in those subdirectories. When I do this, the icons work on the site but not on files in the subdirectory. I made a fairly small example.

It would be ideal if branding worked in all directories.

Steps to reproduce

See https://github.com/szimmer/try-quarto-brand, which contains a _brand.yml file with (essentially)

logo:
  small: images/favicon.png
  medium: images/favicon.png

a _quarto.yml

project:
  type: website

website:
  title: "tmpsite"
  navbar:
    left:
      - href: index.qmd
        text: Home
      - about.qmd

format:
  html:
    theme:
      - cosmo
      - brand
    css: styles.css
    toc: true

and two slides files

* slides.qmd
* slides/slides.qmd

Both slide files are identical

---
title: "Untitled"
format: revealjs
---

## Here's a slide

Expected behavior

Both slides, when rendered, should show the logo in the slides.

Actual behavior

Only the slides.qmd has the logo, slides/slides.qmd has a broken image.

Your environment

Quarto check output

quarto v1.6.40

Metadata

Metadata

Labels

brand`_brand.yml`bugSomething isn't workingtriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions