I think we want to use `request.session.flash` here instead.

Also FTR: `resource_url` allows you to pass a `query` parameter and with that constructs the query part for you.