# HG changeset patch # User Ludovic Chabant # Date 1419727664 28800 # Node ID a42469dbdc47dc6bf3700232b30ce1dce936cbbe # Parent 1c3d229158ba79f289356efdfd1bf013e222a11e Match routes completely, not partially. diff -r 1c3d229158ba -r a42469dbdc47 piecrust/routing.py --- a/piecrust/routing.py Thu Dec 04 12:49:53 2014 -0800 +++ b/piecrust/routing.py Sat Dec 27 16:47:44 2014 -0800 @@ -26,7 +26,7 @@ self.uri_root = app.config.get('site/root').rstrip('/') + '/' self.uri_pattern = uri.lstrip('/') self.uri_format = route_re.sub(self._uriFormatRepl, self.uri_pattern) - p = route_re.sub(self._uriPatternRepl, self.uri_pattern) + p = route_re.sub(self._uriPatternRepl, self.uri_pattern) + '$' self.uri_re = re.compile(p) self.source_name = cfg['source'] self.taxonomy = cfg.get('taxonomy')