Skip to content

Commit deab465

Browse files
committed
Fix relative URLs by specifying the base URL
1 parent c1dacb9 commit deab465

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/create-new-release-notes.main.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ val feed = SyndFeedInput().build(reader)
3030
val latestRelease = feed.entries.first()
3131
val latestReleaseItems = latestRelease.contents.first().value
3232

33+
// Specifies the base URL for relative links in the document
34+
writer.write("""<base href="https://developer.android.com/" target="_blank"/>""")
35+
writer.write("\n\n")
36+
3337
Jsoup
3438
.parse(latestReleaseItems)
3539
.select("a")

0 commit comments

Comments
 (0)