# HG changeset patch # User Ludovic Chabant # Date 1467557597 25200 # Node ID 673979a5d548c590bae015e771ce14302d2742ec # Parent a7726e4862c4fc4b97cf3b882e9de39c87d6c055 internal: Don't strip the trailing slash when we get the root URL exactly. Before we were treating `/` as a special case, when the special case is *any* root URL -- not just `/`. diff -r a7726e4862c4 -r 673979a5d548 piecrust/serving/util.py --- a/piecrust/serving/util.py Sat Jul 02 01:30:51 2016 -0700 +++ b/piecrust/serving/util.py Sun Jul 03 07:53:17 2016 -0700 @@ -49,7 +49,8 @@ def get_requested_page(app, req_path): # Remove the trailing slash to simplify how we parse URLs. - if req_path != '/': + root_url = app.config.get('site/root') + if req_path != root_url: req_path = req_path.rstrip('/') # Try to find what matches the requested URL.