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 查询字符串参数 idfocus 跳转到 Web 端指定块 #7086

Conversation

iamqiz
Copy link
Contributor

@iamqiz iamqiz commented Jan 16, 2023

URL 参数支持 id=<内容块ID或文档ID>, 在 Web 端加载后可以跳转到指定的内容块或文档
#3949
使用示例:

打开帮助文档: 跳转到块"为您提供安全保障"
http://127.0.0.1:6806/stage/build/desktop/?id=20220212224529-ei1egya
打开帮助文档-常见问题
http://127.0.0.1:6806/stage/build/desktop/?id=20200813093015-u6bopdt
  • Please commit to the dev branch 请提交到 dev 开发分支
  • For contributing new features, please supplement and improve the corresponding user guide documents 对于贡献新特性,请补充完善对应用户指南文档
  • For bug fixes, please describe the problem and solution via code comments 对于修复缺陷,请通过代码注释描述问题和解决方案
  • For text improvements (such as typos and wording adjustments), please submit directly 对于文案改进(比如错别字措辞调整)请直接提交

@88250 88250 changed the title first commit 根据url里的id打开特定块 使用 URL id 参数跳转到 Web 端的指定块 Jan 16, 2023
@88250 88250 requested a review from Vanessa219 January 16, 2023 09:20
@Vanessa219 Vanessa219 added this to the 2.7.0 milestone Jan 16, 2023
@Vanessa219 Vanessa219 merged commit 77560d6 into siyuan-note:dev Jan 16, 2023
@Vanessa219 Vanessa219 changed the title 使用 URL id 参数跳转到 Web 端的指定块 使用 URL id, focus 参数跳转到 Web 端的指定块 Jan 16, 2023
@88250 88250 changed the title 使用 URL id, focus 参数跳转到 Web 端的指定块 使用 URL 查询字符串参数 idfocus 跳转到 Web 端指定块 Jan 16, 2023
@88250 88250 changed the title 使用 URL 查询字符串参数 idfocus 跳转到 Web 端指定块 支持通过 URL 查询字符串参数 idfocus 跳转到 Web 端指定块 Jan 16, 2023
Vanessa219 added a commit that referenced this pull request Jan 16, 2023
Vanessa219 added a commit that referenced this pull request Jan 16, 2023
Zuoqiu-Yingyi added a commit to Zuoqiu-Yingyi/siyuan-theme-dark-plus that referenced this pull request Jan 17, 2023
…isables the function of jumping to the specified block with URL parameters.

Adapt: [Pull Request #7086 · siyuan-note/siyuan](siyuan-note/siyuan#7086)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants