Title: "href" of sidebar headers · Issue #1069 · docsifyjs/docsify · GitHub
Open Graph Title: "href" of sidebar headers · Issue #1069 · docsifyjs/docsify
X Title: "href" of sidebar headers · Issue #1069 · docsifyjs/docsify
Description: Bug Report This maybe should be a feature request, I'm not sure. I just tell what happen and what I expect. Steps to reproduce In markdown file, wrote a header with link, like: ## [chapter](https://wikisource.com/chapter) and use sidebar...
Open Graph Description: Bug Report This maybe should be a feature request, I'm not sure. I just tell what happen and what I expect. Steps to reproduce In markdown file, wrote a header with link, like: ## [chapter](https:/...
X Description: Bug Report This maybe should be a feature request, I'm not sure. I just tell what happen and what I expect. Steps to reproduce In markdown file, wrote a header with link, like: ## [chapter](htt...
Opengraph URL: https://github.com/docsifyjs/docsify/issues/1069
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"href\" of sidebar headers","articleBody":"\u003c!-- Please don't delete this template or we'll close your issue -->\r\n\u003c!-- Please use English language -->\r\n\u003c!-- Before creating an issue please make sure you are using the latest version of Docsify. -->\r\n\u003c!-- Please ask questions on StackOverflow: https://stackoverflow.com/questions/ask?tags=docsify -->\r\n\r\n## Bug Report\r\n\r\nThis maybe should be a feature request, I'm not sure.\r\nI just tell what happen and what I expect.\r\n\r\n#### Steps to reproduce\r\n\r\nIn markdown file, wrote a header with link, like:\r\n```\r\n## [chapter](https://wikisource.com/chapter)\r\n```\r\n\r\nand use sidebar.\r\n\r\n#### What is current behaviour\r\n\r\nIn sidebar, if you click `chapter` and chapter is a normal header(without link), it will guide you to the position(y scroll) of `chapter` in page. (this is normal case)\r\n\r\nBut if the `chapter` header has had a `href`, click the title `chapter` in sidebar, will open a new page with \"https://wikisource.com/chapter\".\r\n\r\n#### What is the expected behaviour\r\n\r\nIn sidebar, whether or not I have a link, click should always bring me to the correct position in the doc. \r\n \r\nAnd if I click the \"chapter\" header (with link) in the doc, then go open the link in new page.\r\n\r\nSidebar should always be a “navigation”, a guide to position in doc, not to outside.\r\n\r\n#### Other relevant information\r\n\r\n\u003c!-- (Update \"[ ]\" to \"[x]\" to check a box) -->\r\n- [ ] Bug does still occur when all/other plugins are disabled?\r\n\r\nYour OS: win10 1909\r\nNode.js version: 10.12.0\r\nnpm/yarn version: 6.4.1\r\nBrowser version: chrome Version 80.0.3987.132 (Official Build) (64-bit)\r\nDocsify version: 4.11.2\r\nDocsify plugins: I've remove all plugins, its same.\r\n\r\n\u003c!-- Love docsify? Please consider supporting our collective:\r\n👉 https://opencollective.com/docsify/donate -->\r\n\r\n---\r\n\r\nI've tried to change it like\r\n```\r\n## chapter [🔗](https://wikisource.com/chapter)\r\n```\r\n\r\nThe sidebar will display \"chapter-🔗\", in two lines (because of css display:block).\r\nClick `chapter`, go the position in doc, it works. And click `🔗`, go outside site page, its fine. Then I can modify the css to make them in one line. \r\n\r\nBut I still wish you can consider about this. \r\nAnd thanks for your time.","author":{"url":"https://github.com/Erimus-Koo","@type":"Person","name":"Erimus-Koo"},"datePublished":"2020-03-13T06:47:20Z","url":"https://github.com/docsifyjs/docsify/issues/1069"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:857902f2-318e-4dc5-2fa6-930d9ce6abf1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5D8:139ADC:105FA4:174D8D:6AFD4CCC |
| html-safe-nonce | 4c239d5ba86da594aec62afc946a92707bbdf83faa864b32e3449de64f644351 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUQ4OjEzOUFEQzoxMDVGQTQ6MTc0RDhEOjZBRkQ0Q0NDIiwidmlzaXRvcl9pZCI6IjE0OTE2MzM0MjA2MTcyMDY5ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 291c2b13edf842992487f52a4184f5504e7dbd1b08b54869f4b892254da735a1 |
| hovercard-subject-tag | issue:580405213 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docsifyjs/docsify/1069/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17f86d2519c806a190bd2a1e55e7cab64cf5f0bc428a124b4a9e5f6eb044c79d/docsifyjs/docsify/issues/1069 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17f86d2519c806a190bd2a1e55e7cab64cf5f0bc428a124b4a9e5f6eb044c79d/docsifyjs/docsify/issues/1069 |
| og:image:alt | Bug Report This maybe should be a feature request, I'm not sure. I just tell what happen and what I expect. Steps to reproduce In markdown file, wrote a header with link, like: ## [chapter](https:/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Erimus-Koo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/docsifyjs/docsify git https://github.com/docsifyjs/docsify.git |
| octolytics-dimension-user_id | 40133106 |
| octolytics-dimension-user_login | docsifyjs |
| octolytics-dimension-repository_id | 74260508 |
| octolytics-dimension-repository_nwo | docsifyjs/docsify |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 74260508 |
| octolytics-dimension-repository_network_root_nwo | docsifyjs/docsify |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width