Commit 16f1b7a
committed
fix(NcRichText)!: do not render non-resolved relative links
- still works: external links, internal absolute links, and internal relative links, that do have a router match for current app
- internal relative links without match (also ?query and #anchor) only render an inner text
- allow tel: and mail: to reduce breaking changes
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>1 parent 77042fb commit 16f1b7a
2 files changed
Lines changed: 735 additions & 0 deletions
File tree
- src/components/NcRichText
- tests/component/components/NcRichText
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
556 | 557 | | |
557 | 558 | | |
558 | 559 | | |
| 560 | + | |
559 | 561 | | |
560 | 562 | | |
561 | 563 | | |
| |||
566 | 568 | | |
567 | 569 | | |
568 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
569 | 583 | | |
570 | 584 | | |
571 | 585 | | |
| |||
0 commit comments