Commit 71d64a1
committed
fix: allow integer sentinel in set_page_position URL for Wagtail probe
Wagtail calls reverse("wagtailadmin_pages:set_page_position", args=[999999])
to test URL existence before rendering the reorder button. The <object_id:>
converter regex requires 24 hex chars, so 999999 fails. Switch to re_path
accepting both formats; the view's ORM coerces the string to ObjectId.1 parent 296e41b commit 71d64a1
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
0 commit comments