diff piecrust/baking/single.py @ 235:55087da9a72e

bake: Don't include the site root when building output paths.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 14 Feb 2015 08:49:09 -0800
parents 91dcbb5fe1e8
children da5e6e00fb41
line wrap: on
line diff
--- a/piecrust/baking/single.py	Sat Feb 14 08:37:00 2015 -0800
+++ b/piecrust/baking/single.py	Sat Feb 14 08:49:09 2015 -0800
@@ -109,7 +109,7 @@
 
         # Generate the URL using the route.
         page = factory.buildPage()
-        uri = route.getUri(route_metadata, page)
+        uri = route.getUri(route_metadata, page, include_site_root=False)
 
         override = self.record.getOverrideEntry(factory, uri)
         if override is not None: