Mercurial > piecrust2
view .hgtags @ 380:f33712c4cfab
routing: Fix bugs with matching URLs with correct route but missing metadata.
When matching a route like `/foo/%slug%` against an URL like `/foo`, the route
will (correctly) return a match, but it will be completely missing the `slug`
metadata, resulting in problems elsewhere. This change makes it so that any
missing route metadata will be filled in with an empty string.
And because this means generated URLs may differ from the incoming URL when
using trailing slashes (`/foo/` _vs._ `/foo`), we make the assert in the
chef server handle those discrepancies.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 10 May 2015 00:34:21 -0700 |
parents | 115668bb447d |
children | 4a5dd3424012 |
line wrap: on
line source
cb1ed436642caadf9d3f19c1750096b116e43606 2.0.0-alpha1 cb1ed436642caadf9d3f19c1750096b116e43606 2.0.0-alpha1 ecee3e8f35e57e4a606794a11fc6e8aba2734d2f 2.0.0-alpha1 ecee3e8f35e57e4a606794a11fc6e8aba2734d2f 2.0.0-alpha1 8f988aa54433e0c4aa036cd00bcfa5904d3be304 2.0.0-alpha1 fdb08d986384687959fe11640f058eac22c17b8f 2.0.0-alpha2 c80a3be091da98f00ccb8e3a1be628f7d6a68ae5 2.0.0-alpha3 d74ae33832ae4ca0d17b56ea862381517875ab0a 2.0.0-alpha4 d74ae33832ae4ca0d17b56ea862381517875ab0a 2.0.0-alpha4 028df35a690e55c95c8fae692c85b3d69dc6cc7e 2.0.0-alpha4 acc718ab56da2aeecce83a9fe8240f48f2b0b607 2.0.0a5 1ecc0c16ba64619e16c18a3d777ab5d461240628 2.0.0a6 3a496ffbb898108feba64a3dbaabb2cd2a7ee4a7 2.0.0a7 c2ca72fb7f0bf215a940613faa232b9bd2ee7471 2.0.0a8