Keep trailing slash when baseUrl contains a sub path
authorbep <bjorn.erik.pedersen@gmail.com>
Sat, 28 Feb 2015 17:45:02 +0000 (18:45 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Sat, 28 Feb 2015 17:45:02 +0000 (18:45 +0100)
commit9d80ecb4d8efa1a45f649d8b75d7e2c946c09070
tree94ec57df8c2234eed8f0dffcdf3cb62afff449d3
parent176ce5deab2b6a71789c14a401b8f9ed10399fde
Keep trailing slash when baseUrl contains a sub path

Before this commit, .Site.BaseUrl ended up as:

http://mysite.com/ => http://mysite.com/
http://mysite.com/sub/ => http://mysite.com/sub

Now it becomes:

http://mysite.com/ => http://mysite.com/
http://mysite.com/sub/ => http://mysite.com/sub/

Fixed #931
helpers/url.go
helpers/url_test.go
hugolib/site.go