mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Fix aliases with path in baseURL
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
0a9172672a
commit
9679023f2b
@@ -52,6 +52,7 @@ func TestAlias(t *testing.T) {
|
||||
settings map[string]interface{}
|
||||
}{
|
||||
{"/index.html", "http://example.com", "/", map[string]interface{}{"baseURL": "http://example.com"}},
|
||||
{"/index.html", "http://example.com/some/path", "/", map[string]interface{}{"baseURL": "http://example.com/some/path"}},
|
||||
{"/index.html", "http://example.com", "/", map[string]interface{}{"baseURL": "http://example.com", "canonifyURLs": true}},
|
||||
{"/index.html", "../..", "/", map[string]interface{}{"relativeURLs": true}},
|
||||
{".html", "", ".html", map[string]interface{}{"uglyURLs": true}},
|
||||
|
Reference in New Issue
Block a user