Skip to content

使用 URL 参数跳转到 Web 端的指定块 #3949

Closed
@Zuoqiu-Yingyi

Description

@Zuoqiu-Yingyi
Contributor

在什么情况下你需要该特性? In what scenarios do you need this function?

最近使用 API 实现了云收集箱功能, 但是在查看过程中出现了问题: 无法在收集箱中插入一个内容块后使用 URL 从浏览器外部跳转到 Web 端的该内容块

描述可能的最优解决方案 Describe the optimal solution

添加 URL 参数 id=<内容块 ID>, 再 Web 端加载后跳转到指定的内容块

其他信息 Other information

在群友的帮助下目前使用 siyuan-theme-dark-plus/script/utils/misc.js 方案, 但是该方案无法在未打开任何文档页签时使用

Activity

winter60

winter60 commented on Jun 6, 2022

@winter60

我发现另一个场景好像也需要这个,比如将这个网页作为作为iframe嵌入另一个应用,这时就需要指定页面,需要用到块id。
刚看到b站的一个视频,https://www.bilibili.com/video/BV1PZ4y1t7NW?p=1
联想到thebrain和思源结合,嵌入网页比本地uri跳转更适合,可以一目了然。不过thebrain还不太熟练还在学习中。

88250

88250 commented on Dec 12, 2022

@88250
Member

这个我们暂时不考虑了,欢迎 PR 贡献代码。

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @88250@winter60@Zuoqiu-Yingyi

        Issue actions

          使用 URL 参数跳转到 Web 端的指定块 · Issue #3949 · siyuan-note/siyuan