Repository navigation
fix(content-blog): resolve anchor links in truncated blog previews - #12364
devteamaegis wants to merge 1 commit into
Conversation
In blog paginated list views (/blog, tags, authors), a post preview is rendered under the list page URL rather than the post permalink. An in-page anchor link written above the truncate marker, e.g. `[jump](#section)`, was left relative and therefore resolved against the list page (/blog#section) instead of the post, leading nowhere. The blog markdown loader already truncates the preview in its `?truncated=true` branch, which is the only place that knows it is producing a list-view preview. There we now rebase bare `#anchor` link targets to the current post permalink, using the source->permalink map already maintained for link resolution. Other relative links are left untouched, as they are handled later in the MDX pipeline. The full post page (compiled without the query) is unaffected. Adds unit tests for the new `resolveTruncatedAnchorLinks` helper. Closes meta#9731
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@slorber @Josh-Cena friendly ping on this one when you have a moment. Happy to make any changes. |
|
[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected] Lo so benissimo che la vita è una cosa seria per me lo è sempre stato lo è e lo sarà. Purtroppo come ti ripeto per l' ennesima volta la situazione che mi si è venuta a creare è dipesa solo ed esclusivamente da tutti i reati civili penali e patrimoniali che sono stati commessi dal procuratore Cristian Ciuffarella della Fcbricolagesrl ( sai il motivo per il quale l' ho firmata )la mia società di cui sono amministratore unico. Amministratore che come ti ripeto è stato estromesso dalla Gestione finanziaria economica logistica patrimoniale monetaria commerciale dal procuratore Cristian Ciuffarella attraverso l' uso della forza, della violenza fisica e psicologica, attraverso le menzogne, mettendo in cattiva luce la mia persona dinanzi a dipendenti, clienti, fornitori, rappresentanti, amici, donne, raccontando la qualunque su di me, inventando presunte malattie, presunti problemi con alcool e droghe, presunti fidanzati di sesso maschile e transessuali, presunti rapporti con il mondo della pedofilia, presunti situazioni in cui io sarei un topo d' appartamento, presunti rapporti sessuali con galline, presunti pollai nel mio ufficio, presunta vendita di uova al dettaglio, presunti figli all' estero, presunti debiti di 40.000€ 50.000€ in posti dove innanzitutto sarebbe impossibile, ma dove ho sempre pagato Ottieni BlueMail per cellulari Ottieni BlueMail per cellulari Ottieni BlueMail per cellulari Ottieni BlueMail per cellulari Ottieni BlueMail per cellulari Ottieni BlueMail per cellulari Ottieni BlueMail per cellulari |
|
+44 7868222793Join the Rothschild Brothers! We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 |
|   |
|
+39 320 269 3833danasacalus@[email protected]+39 320 269 3833+39 320 269 3833danasacalus@[email protected]+39 320 269 3833+39 320 269 3833danasacalus@[email protected]+39 320 269 3833 [email protected]+39 320 269 [email protected]+39 320 269 3833Silvia.iannarilli@[email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 3833Silvia.iannarilli@[email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 3833Silvia.iannarilli@[email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 3833Silvia.iannarilli@[email protected]+39 320 269 [email protected]@[email protected]+39 320 269 3833Silvia.iannarilli@[email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 [email protected]@[email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 3833Silvia.iannarilli@[email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 [email protected]+39 320 269 3833+39 320 269 3833danasacalus@[email protected]+39 320 269 [email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 [email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 [email protected]+39 320 269 [email protected]+39 320 269 [email protected]+39 320 269 3833danasacalus@[email protected]+39 320 269 [email protected]+39 320 269 [email protected]+39 320 269 [email protected]+39 320 269 [email protected]+39 320 269 3833Silvia.iannarilli@[email protected] the Rothschild Brothers! We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 We invite you to become part of the Rothschild Brothers community, where ambition, unity, networking, and shared growth bring people together. Join us as we build meaningful connections and work toward a brighter future. https://wa.me/message/RAGLUDT2VN52D1 |
|
🏴🏴🏴🇿🇼🇿🇲🇿🇦🇾🇹🇾🇪🇽🇰🇼🇸🇼🇫🇻🇺🇻🇳🇻🇮🇻🇬🇻🇪🇻🇨🇻🇦🇺🇿🇺🇾🇺🇸🇺🇳🇺🇲🇺🇬🇺🇦🇹🇿🇹🇼🇹🇻🇹🇹🇹🇷🇹🇴🇹🇳🇹🇲🇹🇱🇹🇰🇹🇯🇹🇭🇹🇬🇹🇫🇹🇩🇹🇨🇹🇦🇸🇿🇸🇾🇸🇽🇸🇻🇸🇹🇸🇸🇸🇷🇸🇴🇸🇳🇸🇲🇸🇱🇸🇰🇸🇯🇸🇮🇸🇭🇸🇬🇸🇪🇸🇩🇸🇨🇸🇧🇸🇦🇷🇼🇷🇺🇷🇸🇷🇴🇷🇪🇶🇦🇵🇾🇵🇼🇵🇹🇵🇸🇵🇷🇵🇳🇵🇲🇵🇱🇵🇰🇵🇭🇵🇬🇵🇫🇵🇪🇵🇦🇴🇲🇳🇿🇳🇺🇳🇷🇳🇵🇳🇴🇳🇱🇳🇮🇳🇬🇳🇫🇳🇪🇳🇨🇳🇦🇲🇿🇲🇾🇲🇽🇲🇼🇲🇻🇲🇺🇲🇹🇲🇸🇲🇷🇲🇶🇲🇵🇲🇴🇲🇳🇲🇲🇲🇱🇲🇰🇲🇭🇲🇬🇲🇫🇲🇪🇲🇩🇲🇨🇲🇦🇱🇾🇱🇻🇱🇺🇱🇹🇱🇸🇱🇷🇱🇰🇱🇮🇱🇨🇱🇧🇱🇦🇰🇿🇰🇾🇰🇼🇰🇷🇰🇵🇰🇳🇰🇲🇰🇮🇰🇭🇰🇬🇰🇪🇯🇵🇯🇴🇯🇲🇯🇪🇮🇹🇮🇸🇮🇷🇮🇶🇮🇴🇮🇳🇮🇲🇮🇱🇮🇪🇮🇩🇮🇨🇭🇺🇭🇹🇭🇷🇭🇳🇭🇲🇭🇰🇬🇾🇬🇼🇬🇺🇬🇹🇬🇸🇬🇷🇬🇶🇬🇵🇬🇳🇬🇲🇬🇱🇬🇮🇬🇭🇬🇬🇬🇫🇬🇪🇬🇩🇬🇧🇬🇦🇫🇷🇫🇴🇫🇲🇫🇰🇫🇯🇫🇮🇪🇺🇪🇹🇪🇸🇪🇷🇪🇭🇪🇬🇪🇪🇪🇨🇪🇦🇩🇿🇩🇴🇩🇲🇩🇰🇩🇯🇩🇬🇩🇪🇨🇿🇨🇾🇨🇽🇨🇼🇨🇻🇨🇺🇨🇷🇨🇶🇨🇵🇨🇴🇨🇳🇨🇲🇨🇱🇨🇰🇨🇮🇨🇭🇨🇬🇨🇫🇨🇩🇨🇨🇨🇦🇧🇿🇧🇾🇧🇼🇧🇻🇧🇹🇧🇸🇧🇷🇧🇶🇧🇴🇧🇳🇧🇲🇧🇱🇧🇯🇧🇮🇧🇭🇧🇬🇧🇫🇧🇪🇧🇩🇧🇧🇧🇦🇦🇿🇦🇽🇦🇼🇦🇺🇦🇹🇦🇸🇦🇷🇦🇶🇦🇴🇦🇲🇦🇱🇦🇮🇦🇬🇦🇫🇦🇪🇦🇩🇦🇨🏴☠️🏳️⚧️🏳️🌈🏳🏴🚩🏁🏴🏴🏴🇿🇼🇿🇲🇿🇦🇾🇹🇾🇪🇽🇰🇼🇸🇼🇫🇻🇺🇻🇳🇻🇮🇻🇬🇻🇪🇻🇨🇻🇦🇺🇿🇺🇾🇺🇸🇺🇳🇺🇲🇺🇬🇺🇦🇹🇿🇹🇼🇹🇻🇹🇹🇹🇷🇹🇴🇹🇳🇹🇲🇹🇱🇹🇰🇹🇯🇹🇭🇹🇬🇹🇫🇹🇩🇹🇨🇹🇦🇸🇿🇸🇾🇸🇽🇸🇻🇸🇹🇸🇸🇸🇷🇸🇴🇸🇳🇸🇲🇸🇱🇸🇰🇸🇯🇸🇮🇸🇭🇸🇬🇸🇪🇸🇩🇸🇨🇸🇧🇸🇦🇷🇼🇷🇺🇷🇸🇷🇴🇷🇪🇶🇦🇵🇾🇵🇼🇵🇹🇵🇸🇵🇷🇵🇳🇵🇲🇵🇱🇵🇰🇵🇭🇵🇬🇵🇫🇵🇪🇵🇦🇴🇲🇳🇿🇳🇺🇳🇷🇳🇵🇳🇴🇳🇱🇳🇮🇳🇬🇳🇫🇳🇪🇳🇨🇳🇦🇲🇿🇲🇾🇲🇽🇲🇼🇲🇻🇲🇺🇲🇹🇲🇸🇲🇷🇲🇶🇲🇵🇲🇴🇲🇳🇲🇲🇲🇱🇲🇰🇲🇭🇲🇬🇲🇫🇲🇪🇲🇩🇲🇨🇲🇦🇱🇾🇱🇻🇱🇺🇱🇹🇱🇸🇱🇷🇱🇰🇱🇮🇱🇨🇱🇧🇱🇦🇰🇿🇰🇾🇰🇼🇰🇷🇰🇵🇰🇳🇰🇲🇰🇮🇰🇭🇰🇬🇰🇪🇯🇵🇯🇴🇯🇲🇯🇪🇮🇹🇮🇸🇮🇷🇮🇶🇮🇴🇮🇳🇮🇲🇮🇱🇮🇪🇮🇩🇮🇨🇭🇺🇭🇹🇭🇷🇭🇳🇭🇲🇭🇰🇬🇾🇬🇼🇬🇺🇬🇹🇬🇸🇬🇷🇬🇶🇬🇵🇬🇳🇬🇲🇬🇱🇬🇮🇬🇭🇬🇬🇬🇫🇬🇪🇬🇩🇬🇧🇬🇦🇫🇷🇫🇴🇫🇲🇫🇰🇫🇯🇫🇮🇪🇺🇪🇹🇪🇸🇪🇷🇪🇭🇪🇬🇪🇪🇪🇨🇪🇦🇩🇿🇩🇴🇩🇲🇩🇰🇩🇯🇩🇬🇩🇪🇨🇿🇨🇾🇨🇽🇨🇼🇨🇻🇨🇺🇨🇷🇨🇶🇨🇵🇨🇴🇨🇳🇨🇲🇨🇱🇨🇰🇨🇮🇨🇭🇨🇬🇨🇫🇨🇩🇨🇨🇨🇦🇧🇿🇧🇾🇧🇼🇧🇻🇧🇹🇧🇸🇧🇷🇧🇶🇧🇴🇧🇳🇧🇲🇧🇱🇧🇯🇧🇮🇧🇭🇧🇬🇧🇫🇧🇪🇧🇩🇧🇧🇧🇦🇦🇿🇦🇽🇦🇼🇦🇺🇦🇹🇦🇸🇦🇷🇦🇶🇦🇴🇦🇲🇦🇱🇦🇮🇦🇬🇦🇫🇦🇪🇦🇩🇦🇨🏴☠️🏳️⚧️🏳️🌈🏳🏴🚩🏁🏴🏴🏴🇿🇼🇿🇲🇿🇦🇾🇹🇾🇪🇽🇰🇼🇸🇼🇫🇻🇺🇻🇳🇻🇮🇻🇬🇻🇪🇻🇨🇻🇦🇺🇿🇺🇾🇺🇸🇺🇳🇺🇲🇺🇬🇺🇦🇹🇿🇹🇼🇹🇻🇹🇹🇹🇷🇹🇴🇹🇳🇹🇲🇹🇱🇹🇰🇹🇯🇹🇭🇹🇬🇹🇫🇹🇩🇹🇨🇹🇦🇸🇿🇸🇾🇸🇽🇸🇻🇸🇹🇸🇸🇸🇷🇸🇴🇸🇳🇸🇲🇸🇱🇸🇰🇸🇯🇸🇮🇸🇭🇸🇬🇸🇪🇸🇩🇸🇨🇸🇧🇸🇦🇷🇼🇷🇺🇷🇸🇷🇴🇷🇪🇶🇦🇵🇾🇵🇼🇵🇹🇵🇸🇵🇷🇵🇳🇵🇲🇵🇱🇵🇰🇵🇭🇵🇬🇵🇫🇵🇪🇵🇦🇴🇲🇳🇿🇳🇺🇳🇷🇳🇵🇳🇴🇳🇱🇳🇮🇳🇬🇳🇫🇳🇪🇳🇨🇳🇦🇲🇿🇲🇾🇲🇽🇲🇼🇲🇻🇲🇺🇲🇹🇲🇸🇲🇷🇲🇶🇲🇵🇲🇴🇲🇳🇲🇲🇲🇱🇲🇰🇲🇭🇲🇬🇲🇫🇲🇪🇲🇩🇲🇨🇲🇦🇱🇾🇱🇻🇱🇺🇱🇹🇱🇸🇱🇷🇱🇰🇱🇮🇱🇨🇱🇧🇱🇦🇰🇿🇰🇾🇰🇼🇰🇷🇰🇵🇰🇳🇰🇲🇰🇮🇰🇭🇰🇬🇰🇪🇯🇵🇯🇴🇯🇲🇯🇪🇮🇹🇮🇸🇮🇷🇮🇶🇮🇴🇮🇳🇮🇲🇮🇱🇮🇪🇮🇩🇮🇨🇭🇺🇭🇹🇭🇷🇭🇳🇭🇲🇭🇰🇬🇾🇬🇼🇬🇺🇬🇹🇬🇸🇬🇷🇬🇶🇬🇵🇬🇳🇬🇲🇬🇱🇬🇮🇬🇭🇬🇬🇬🇫🇬🇪🇬🇩🇬🇧🇬🇦🇫🇷🇫🇴🇫🇲🇫🇰🇫🇯🇫🇮🇪🇺🇪🇹🇪🇸🇪🇷🇪🇭🇪🇬🇪🇪🇪🇨🇪🇦🇩🇿🇩🇴🇩🇲🇩🇰🇩🇯🇩🇬🇩🇪🇨🇿🇨🇾🇨🇽🇨🇼🇨🇻🇨🇺🇨🇷🇨🇶🇨🇵🇨🇴🇨🇳🇨🇲🇨🇱🇨🇰🇨🇮🇨🇭🇨🇬🇨🇫🇨🇩🇨🇨🇨🇦🇧🇿🇧🇾🇧🇼🇧🇻🇧🇹🇧🇸🇧🇷🇧🇶🇧🇴🇧🇳🇧🇲🇧🇱🇧🇯🇧🇮🇧🇭🇧🇬🇧🇫🇧🇪🇧🇩🇧🇧🇧🇦🇦🇿🇦🇽🇦🇼🇦🇺🇦🇹🇦🇸🇦🇷🇦🇶🇦🇴🇦🇲🇦🇱🇦🇮🇦🇬🇦🇫🇦🇪🇦🇩🇦🇨🏴☠️🏳️⚧️🏳️🌈🏳🏴🚩🏁 |
|
🏴🏴🏴🇿🇼🇿🇲🇿🇦🇾🇹🇾🇪🇽🇰🇼🇸🇼🇫🇻🇺🇻🇳🇻🇮🇻🇬🇻🇪🇻🇨🇻🇦🇺🇿🇺🇾🇺🇸🇺🇳🇺🇲🇺🇬🇺🇦🇹🇿🇹🇼🇹🇻🇹🇹🇹🇷🇹🇴🇹🇳🇹🇲🇹🇱🇹🇰🇹🇯🇹🇭🇹🇬🇹🇫🇹🇩🇹🇨🇹🇦🇸🇿🇸🇾🇸🇽🇸🇻🇸🇹🇸🇸🇸🇷🇸🇴🇸🇳🇸🇲🇸🇱🇸🇰🇸🇯🇸🇮🇸🇭🇸🇬🇸🇪🇸🇩🇸🇨🇸🇧🇸🇦🇷🇼🇷🇺🇷🇸🇷🇴🇷🇪🇶🇦🇵🇾🇵🇼🇵🇹🇵🇸🇵🇷🇵🇳🇵🇲🇵🇱🇵🇰🇵🇭🇵🇬🇵🇫🇵🇪🇵🇦🇴🇲🇳🇿🇳🇺🇳🇷🇳🇵🇳🇴🇳🇱🇳🇮🇳🇬🇳🇫🇳🇪🇳🇨🇳🇦🇲🇿🇲🇾🇲🇽🇲🇼🇲🇻🇲🇺🇲🇹🇲🇸🇲🇷🇲🇶🇲🇵🇲🇴🇲🇳🇲🇲🇲🇱🇲🇰🇲🇭🇲🇬🇲🇫🇲🇪🇲🇩🇲🇨🇲🇦🇱🇾🇱🇻🇱🇺🇱🇹🇱🇸🇱🇷🇱🇰🇱🇮🇱🇨🇱🇧🇱🇦🇰🇿🇰🇾🇰🇼🇰🇷🇰🇵🇰🇳🇰🇲🇰🇮🇰🇭🇰🇬🇰🇪🇯🇵🇯🇴🇯🇲🇯🇪🇮🇹🇮🇸🇮🇷🇮🇶🇮🇴🇮🇳🇮🇲🇮🇱🇮🇪🇮🇩🇮🇨🇭🇺🇭🇹🇭🇷🇭🇳🇭🇲🇭🇰🇬🇾🇬🇼🇬🇺🇬🇹🇬🇸🇬🇷🇬🇶🇬🇵🇬🇳🇬🇲🇬🇱🇬🇮🇬🇭🇬🇬🇬🇫🇬🇪🇬🇩🇬🇧🇬🇦🇫🇷🇫🇴🇫🇲🇫🇰🇫🇯🇫🇮🇪🇺🇪🇹🇪🇸🇪🇷🇪🇭🇪🇬🇪🇪🇪🇨🇪🇦🇩🇿🇩🇴🇩🇲🇩🇰🇩🇯🇩🇬🇩🇪🇨🇿🇨🇾🇨🇽🇨🇼🇨🇻🇨🇺🇨🇷🇨🇶🇨🇵🇨🇴🇨🇳🇨🇲🇨🇱🇨🇰🇨🇮🇨🇭🇨🇬🇨🇫🇨🇩🇨🇨🇨🇦🇧🇿🇧🇾🇧🇼🇧🇻🇧🇹🇧🇸🇧🇷🇧🇶🇧🇴🇧🇳🇧🇲🇧🇱🇧🇯🇧🇮🇧🇭🇧🇬🇧🇫🇧🇪🇧🇩🇧🇧🇧🇦🇦🇿🇦🇽🇦🇼🇦🇺🇦🇹🇦🇸🇦🇷🇦🇶🇦🇴🇦🇲🇦🇱🇦🇮🇦🇬🇦🇫🇦🇪🇦🇩🇦🇨🏴☠️🏳️⚧️🏳️🌈🏳🏴🚩🏁 |
|
Gentle follow-up: CI is green and this is ready for review whenever someone has time. |



















































Pre-flight checklist
Motivation
Closes #9731 (see also #10287).
In blog paginated list views (
/blog, tags pages, author pages), a post preview is rendered under the list page URL, not the post permalink. An in-page anchor link written above the truncate marker, e.g.was left relative and therefore resolved against the list page —
/blog#details— instead of the post, so clicking it in a preview leads nowhere. On the full post page the same link works, because it resolves against the post URL.onBrokenAnchorsalso reports these as broken.The fix
The blog markdown loader already truncates the preview inside its
?truncated=truebranch — the one place in the pipeline that knows it is producing a list-view preview (the full post page is a separate compilation with no query). There we now rebase bare#anchorlink targets to the current post permalink, using thesource -> permalinkmap the plugin already maintains for Markdown link resolution.Only bare
#anchortargets are rewritten. Other relative links (./x,../x,x.md) are intentionally left untouched — they are handled later in the MDX pipeline (resolveMarkdownLinks/transformLinks) — and absolute/external links are ignored. The full post page is not affected, so same-page anchors there remain native<a href="#…">links.Changed files (all in
docusaurus-plugin-content-blog):blogUtils.ts— newresolveTruncatedAnchorLinks(content, permalink)helper.markdownLoader.ts— call it in thetruncatedbranch, resolving the current post permalink fromthis.resourcePath.index.ts/types.ts— passsiteDirand thesourceToPermalinkmap to the loader.Test Plan
Unit tests (
blogUtils.test.ts,describe('resolveTruncatedAnchorLinks')): 5 cases covering bare anchors, a following title,<…>-wrapped targets, multiple anchors, and that non-anchor/absolute/external links are left untouched.yarn test blogUtils(vitest) is green; ESLint and the formatter pass.End-to-end on a fresh
classicsite with a post containing[the details section](#details)above the truncate marker and a## Detailsheading below:/blog<a href="#details">(→/blog#details, broken)<a href="/blog/…/post#details"><a href="#details">(broken)<a href="/blog/…/post#details"><a href="#details"><a href="#details">(unchanged)onBrokenAnchorsbuild report/blog→#detailsbrokenTest links
Deploy preview: https://deploy-preview-12364--docusaurus-2.netlify.app/
Related issues/PRs
Closes #9731. Related: #10287.