Use "current page" variable in Quarto website

I am following this blog post https://quarto-dev.marioangst.com/en/blog/posts/multi-language-quarto/ to try and create a multi-language quarto website, using profiles.

I would like to be able to switch from one profile to the other on a single page. Essentially this means this bit in _quarto.yml:

website:
  navbar:
    right:
      - href: ../de
        text: Deutsch
      - href: ../en
        text: English

should look like:

website:
  navbar:
    right:
      - href: ../de/{current-page}
        text: Deutsch
      - href: ../en/{current-page}
        text: English

where {current-page} takes the value https://mywebsite.com/current-page.html.

How could I achieve that?

I think this is not yet possible - FR to follow would be

1 Like