Skip to content

UrlDispatcher error during constructing of url with trailing slash #266

Closed
@imbolc

Description

It makes urls without trailing slash.It happened after fixing of regex error :)

>>> from aiohttp.web import UrlDispatcher
>>> disp = UrlDispatcher()
>>> disp.add_route('GET', '/hello/{name}/', lambda x: x, name='name')
<DynamicRoute 'name' [GET] /hello/{name} -> <function <lambda> at 0x7ffd8b47b840>
>>> disp['name'].url(parts={'name': 'foo'})
'/hello/foo'

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions