Skip to content

viewer not actively forbids external urls #10803

Open

Description

@romainfrancois

Follow up to #10416

.rs.api.viewer("https://dplyr.tidyverse.org/reference/summarise.html")

opens the webpage in the viewer in server edition

image

, but not desktop:

image

This leaves a blank page. We can still go to the link by clicking "Show in new window" though. Perhaps this can be more explicit and show some dialog saying that this is an external link, and offering to open in a new window.

image

System details

RStudio Edition : Desktop 
RStudio Version : *
OS Version      : 
R Version       : 

Steps to reproduce the problem

Describe the problem in detail

Describe the behavior you expected

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. github-actions commented on Sep 18, 2022

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  2. added
    stale
    on Sep 18, 2022
  3. removed
    stale
    on Sep 18, 2022
  4. added this to the Elsbeth Geranium milestone on Sep 18, 2022
  5. mikebessuille commented on Sep 19, 2022

    @mikebessuille
    Contributor

    Please verify this is now fixed as a result of Kevin's changes recently

  6. ronblum commented on Sep 19, 2022

    @ronblum
    Contributor
    • RStudio Desktop 2022.11.0-daily+187 (Electron): Open a web browser window instead of displaying in Viewer Pane
    • RStudio Desktop Pro 2022.11.0-daily-174.pro2 (Qt): Blank (as before)
    • RStudio Server 2022.11.0-daily+187: Opens in Viewer Pane, but links in it like Source: [R/summarise.R](https://github.com/tidyverse/dplyr/blob/HEAD/R/summarise.R) and [quantile](https://rdrr.io/r/stats/quantile.html) don't work:

    Image

  7. modified the milestones: Elsbeth Geranium, 2023 on Sep 28, 2022
  8. timtmok commented on Sep 28, 2022

    @timtmok
    Contributor

    @mikebessuille moving to 2023 for now. This is really about RStudio Server. Desktop will block an external link from opening. For server, I think we'd want it to open another tab or window so that it's outside of the IDE.

  9. modified the milestones: Backlog-2, Later on Oct 5, 2023
  10. removed their assignment
    on Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions