id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 14772,Reversing a URL with optional arguments fails,Rob Hudson,nobody,"I discovered this recently where I wanted a URL to be /detail/ for page 1, and /detail/page-2/ for further pages. I set up the ""page-2/"" as an optional regular expression and my default had a default kwarg. Reversing this URL without the page worked but not when I added the page argument. So I created some test cases and found some interesting results... The first test case without the '$' terminated URL, results in: `AssertionError: '/optional/1/2' != '/optional/1/2/'` With the '$' terminated URL, it results in an exception, which is what I was triggering in my project, it seems: AssertionError: '/optional/1/2/' != I'll attach the testing changes...",Bug,closed,Core (URLs),1.2,Normal,fixed,"reverse, sprintdec2010",,Accepted,0,0,0,0,0,0