Skip to content

notebook-view.url has no effect #13694

Closed
Stars1233/quarto-cli
#108

Description

@mcanouil

Discussed in https://github.com/orgs/quarto-dev/discussions/13692

Originally posted by pjotrhey November 15, 2025

Description

Hi all,

Based on the documentation, it seems that when embedding an external notebook you can redirect the notebook link to any arbitrary URL using the url field in notebook-view. I’ve tried this, but it does not work for me: the link still points to the local *-preview.html file instead of the URL provided. This is my rendered result: https://pjotrhey.github.io/

Example
I have hosted a full minimal example in a repo, see: https://github.com/pjotrhey/quarto-notebook-url-error The mainfile index.qmd is:

---
title: "Notebook URL demo"
format: html
notebook-view:
  - notebook: penguins.ipynb
    url: "https://quarto.org"
    title: "Open Quarto.org"
---

{{< embed penguins.ipynb#species-counts echo=true >}}

With this setup, the “Open notebook” link in the rendered HTML still points to the preview page (penguins-preview.html) instead of the URL specified in notebook-view.

Has anyone else run into this issue, or am I doing something (horribly) wrong?

Quartion version: 1.8.26 on Windows 11.

Thanks in advance!

Activity

  1. added
    bug
    html
    on Nov 16, 2025
  2. mcanouil commented on Nov 16, 2025

    @mcanouil
    CollaboratorAuthor

    This is to be a long standing issue as the behaviour is the same with 1.4.557.
    This was working only in 1.3 (I tested with 1.3.450) when the feature was introduced.

  3. added
    regression
    on Nov 16, 2025
  4. cderv commented on Nov 18, 2025

    @cderv
    Member

    Took some time but this was lost in a refactoring at faba735

    // Compute the final preview information that will be used
    // to form links to this notebook
    const nbPreview = {
    title: resolvedTitle,
    href: relative(inputDir, renderedNotebook[kHtmlPreview].hrefPath),
    supporting,
    resources,
    order: work.order,
    };

    We need to account for descriptor.url there I think

  5. self-assigned this
    on Nov 18, 2025
  6. modified the milestones: v1.8, v1.9 on Nov 18, 2025
  7. cderv commented on Nov 19, 2025

    @cderv
    Member

    This is now fixed, and we'll be in next 1.8 patch release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugembedhtmlregression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions