Commit 9519a3c
committed
Fix BreadcrumbList on 404 page and escape JSON-LD output
Skip BreadcrumbList structured data on 404 pages since error pages
should not publish structured data. Escape '<' as \u003c in JSON-LD
to prevent potential XSS if page titles ever contain </script>.1 parent 2e8968f commit 9519a3c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments