mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Specify link base in saved HTML pages
This commit is contained in:
parent
75a22fd275
commit
4967e8afba
@ -260,7 +260,10 @@ impl ILIAS {
|
||||
&& el.inner_html().len() > 40
|
||||
{
|
||||
// ^ minimum length of useful content?
|
||||
Some(el.inner_html())
|
||||
// specify a base URL for relative links
|
||||
let mut link_base = format!(r#"<base href="{}">"#, ILIAS_URL);
|
||||
link_base += &el.inner_html();
|
||||
Some(link_base)
|
||||
} else {
|
||||
// first element is the content overview => no custom text (?)
|
||||
None
|
||||
|
Loading…
Reference in New Issue
Block a user