From e53f4e6a9bf6dfe1fa8f02a046333e984feacad8 Mon Sep 17 00:00:00 2001 From: Thibaut Lienart Date: Mon, 14 Sep 2020 18:10:24 +0200 Subject: [PATCH] link fixing for redirect pages, see #557 (#616) --- Project.toml | 2 +- src/converter/html/link_fixer.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index d48f399fe..81f3a4cc4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Franklin" uuid = "713c75ef-9fc9-4b05-94a9-213340da978e" authors = ["Thibaut Lienart "] -version = "0.9.15" +version = "0.9.16" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/converter/html/link_fixer.jl b/src/converter/html/link_fixer.jl index 228d20b79..ea0543699 100644 --- a/src/converter/html/link_fixer.jl +++ b/src/converter/html/link_fixer.jl @@ -79,5 +79,5 @@ function fix_links(pg::String)::String pp = strip(prepath, '/') ss = SubstitutionString("\\1=\"/$(pp)/") # replace things that look like href="/..." with href="/$prepath/..." - return replace(pg, r"(src|href|formaction)\s*?=\s*?\"\/" => ss) + return replace(pg, r"(src|href|formaction|url)\s*?=\s*?\"\/" => ss) end