Listing edit form: Cancel goes to Companies instead of back to the listing #628
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#628
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-09-29 in a read-only review of postulo at
95348908d, following the links on each form.Checked again on 2026-10-01 against
mainat0a5cad587: still present.The listing (posting) form's Cancel always goes to the Companies list, a page the person was not on. The form is reached from the listing page's Edit button and from the no-script title link in the Listings table, and saving returns to the listing itself.
templates/jobs/posting_form.html:21(<a href="{% url 'jobs:company_list' %}" …>{% translate "Cancel" %}</a>), used byPostingUpdateViewandPostingCreateView(jobs/views.py:883-905); the entry points aretemplates/jobs/posting_detail.html:52andtemplates/jobs/partials/listing_row.html:27.{{ object.get_absolute_url }}; when creating, to the company the form was opened for (thecompanyquery parameter) if there is one, otherwise to the Listings page.Done when
tests/test_listings_table.pyrenders the edit form for a listing and asserts Cancel links to that listing's page; it fails today.