Skip to content

Org-id with space AND new line character breaking org/grant page #217

@michaelwood

Description

@michaelwood
NoReverseMatch: Reverse for 'org' with arguments '('GB-CHC- \n1113528 ',)' not found. 1 pattern(s) tried: ['org/(.*)$']
(20 additional frame(s) were not displayed)
...
  File "grantnav/frontend/views.py", line 931, in grant
    return render(request, "grant.html", context=context)
<div class="interface" style="font-weight: 300; margin-bottom: 30px">
  <h3 class="title" style="font-weight: 700; font-size: 18px; margin: 0 0 15px">Request</h3>
URL https://grantnav.threesixtygiving.org/grant/360G-JRF-YCMAY201709

Django templates don't allow theses characters in the parameters for a {% url %} we will need to do a bit of data cleaning on org-ids.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions