Skip to content

Custom page variables aren't decoded #1732

Open

Description

@tannewt

I have a page templates/filer/{filer_id}.html. It uses filer_id in a sql() call to fetch data. With 0.61.1 this no longer works because the spaces in IDs isn't preserved. Instead, the escaped version is passed into the template and the id isn't present in my db.

Datasette should unescape the url component before passing them into the template.

Activity

  1. simonw commented on May 3, 2022

    @simonw
    Owner

    Thanks, this definitely sounds like a bug. Do you have simple steps to reproduce this?

  2. tannewt commented on May 3, 2022

    @tannewt
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions