Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static location in index when prefix is used #1662

Merged
merged 2 commits into from
May 14, 2017

Commits on Feb 19, 2017

  1. Fix static location in index when prefix is used

    When the prefix is used (e.g. not /), the links generated in the
    index page are wrong. In this patch the relative path is correctly
    calculated by the pathlib module and a absolute url is used as link
    in the index page.
    
    The original bug can be demonstrated with following example:
    
    ---
    import pathlib
    
    from aiohttp import web
    
    app = web.Application()
    app.router.add_static('/static', pathlib.Path(__file__).parent,
    show_index=True)
    
    web.run_app(app)
    
    ---
    lovebug356 committed Feb 19, 2017
    Configuration menu
    Copy the full SHA
    518bcbb View commit details
    Browse the repository at this point in the history

Commits on May 14, 2017

  1. Configuration menu
    Copy the full SHA
    54874ec View commit details
    Browse the repository at this point in the history