Moved <base> tag to start of <head> tag. Fixes #42

pull/64/head
Jordan Wright 2015-10-23 18:16:54 -05:00
parent 68b39cf6a3
commit 014efb449e
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ func API_Import_Site(w http.ResponseWriter, r *http.Request) {
} }
// Assuming we don't want to include resources, we'll need a base href // Assuming we don't want to include resources, we'll need a base href
if d.Find("head base").Length() == 0 { if d.Find("head base").Length() == 0 {
d.Find("head").AppendHtml(fmt.Sprintf("<base href=\"%s\">", cr.URL)) d.Find("head").PrependHtml(fmt.Sprintf("<base href=\"%s\">", cr.URL))
} }
h, err := d.Html() h, err := d.Html()
if err != nil { if err != nil {