Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Zuoqiu-Yingyi opened this issue Jan 28, 2022 · 2 comments
Closed

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

Zuoqiu-Yingyi opened this issue Jan 28, 2022 · 2 comments

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

Zuoqiu-Yingyi commented Jan 28, 2022

在什么情况下你需要该特性? 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 方案, 但是该方案无法在未打开任何文档页签时使用

@winter60
Copy link

winter60 commented Jun 6, 2022

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

@88250
Copy link
Member

88250 commented Dec 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants