mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
Make absURL properly handle baseURL with path component
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
94c3825e5b
commit
0962470850
@@ -53,6 +53,8 @@ func TestAbsURL(t *testing.T) {
|
||||
{"/test/2/foo/", "http://base", "http://base/test/2/foo/"},
|
||||
{"http://abs", "http://base/", "http://abs"},
|
||||
{"//schemaless", "http://base/", "//schemaless"},
|
||||
{"test/2/foo/", "http://base/path", "http://base/path/test/2/foo/"},
|
||||
{"/test/2/foo/", "http://base/path", "http://base/test/2/foo/"},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
Reference in New Issue
Block a user