mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
Fix aliases with relativeURLs
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
01e249e97c
commit
145b3fcce3
@@ -69,6 +69,7 @@ func newPrefixState() []*prefix {
|
||||
return []*prefix{
|
||||
{b: []byte("src="), f: checkCandidateBase},
|
||||
{b: []byte("href="), f: checkCandidateBase},
|
||||
{b: []byte("url="), f: checkCandidateBase},
|
||||
{b: []byte("action="), f: checkCandidateBase},
|
||||
{b: []byte("srcset="), f: checkCandidateSrcset},
|
||||
}
|
||||
|
@@ -88,8 +88,8 @@ schemaless: <img srcset='//img.jpg' src='//basic.jpg'>
|
||||
schemaless2: <img srcset="//img.jpg" src="//basic.jpg2> POST
|
||||
`
|
||||
|
||||
relPathVariations = `PRE. a href="/img/small.jpg" input action="/foo.html" POST.`
|
||||
relPathVariationsCorrect = `PRE. a href="../../img/small.jpg" input action="../../foo.html" POST.`
|
||||
relPathVariations = `PRE. a href="/img/small.jpg" input action="/foo.html" meta url=/redirect/to/page/ POST.`
|
||||
relPathVariationsCorrect = `PRE. a href="../../img/small.jpg" input action="../../foo.html" meta url=../../redirect/to/page/ POST.`
|
||||
|
||||
testBaseURL = "http://base/"
|
||||
)
|
||||
|
Reference in New Issue
Block a user