diff options
author | Helder Pereira <helfper@gmail.com> | 2020-06-17 00:05:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-06-17 10:52:35 +0200 |
commit | 9679023f2b0d7c55b70f23fd94603f301a841079 (patch) | |
tree | f98094f076252dd864732f24c20e94c4fde73546 /hugolib/alias_test.go | |
parent | 0a9172672a7f2ed85cf675c96bd01b64641256bb (diff) | |
download | hugo-9679023f2b0d7c55b70f23fd94603f301a841079.tar.gz hugo-9679023f2b0d7c55b70f23fd94603f301a841079.zip |
Fix aliases with path in baseURL
Diffstat (limited to 'hugolib/alias_test.go')
-rw-r--r-- | hugolib/alias_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/alias_test.go b/hugolib/alias_test.go index a1736e7e8..8f3b756ec 100644 --- a/hugolib/alias_test.go +++ b/hugolib/alias_test.go @@ -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}}, |