EnigmaCurry/blogofile_blog — Issue #5: site_path_helper() produces URLs without trailing slashes
Author: brandon-rhodes
Created: 2011-10-10 02:51:53+00:00
State: open

Blogofile templates tend to use site_path_helper() to build URLs, like this:
```

```
But the function, as shown in its own docstring, fails to end URLs with a terminal slash — even if the string provided as its second argument ends with a terminal slash. Since Blogofile is designed to produce sites that make heavy use of index.html files, and thus of URLs ending with "/" that avoid the ugly use of file extensions, this creates a mismatch.

The symptom is web servers that experience extra traffic because of all of the 301's ("moved permanent") as the terminal-slash-less URLs are invoked, hit a 301, and then finally load the page they are looking for.