Commit 3c2b459
Kunal jaiswal
MarkdownRenderer.image computed a publicPath from window.location.pathname and prepended it to absolute image hrefs. On pages nested more than one level deep (e.g. /blog/introducing-ocr-blog), this produced broken URLs like /blog/images/blog/... resulting in 404s.
Since webpack publicPath is '/' (root deployment), absolute paths are already correct. Remove the publicPath computation and use href directly as src.
Closes #428
1 parent be7c591 commit 3c2b459
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
87 | 85 | | |
88 | | - | |
| 86 | + | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
0 commit comments