Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 550c267

Browse filesBrowse files
authored
Fix redirect to patch edit page on creation (#6)
After [this refactor](a173224) of the patch URL, when you create a patch, you're still redirected to the old patch URL, which no longer exists.
1 parent 582a411 commit 550c267
Copy full SHA for 550c267

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎pgcommitfest/commitfest/views.py

Copy file name to clipboardExpand all lines: pgcommitfest/commitfest/views.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def newpatch(request, cfid):
432432
# Now add the thread
433433
try:
434434
doAttachThread(cf, patch, form.cleaned_data['threadmsgid'], request.user)
435-
return HttpResponseRedirect("/%s/%s/edit/" % (cf.id, patch.id))
435+
return HttpResponseRedirect("/patch/%s/edit/" % (patch.id,))
436436
except Http404:
437437
# Thread not found!
438438
# This is a horrible breakage of API layers

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.