Commit 44395c2
authored
FIX: do not prepend #fragment with https:// on link modal (#36619)
`prefixProtocol` is used by the upsert hyperlink modal, it was
prepending `https://` to URLs starting with `#fragment`, which can be
used for topic anchoring.
This PR changes `prefixProtocol` so it doesn't prepend `https://` for
strings started with a `#`.1 parent 278e36c commit 44395c2
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
507 | 512 | | |
508 | 513 | | |
509 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
0 commit comments