Skip to content

Commit

Permalink
Clean up AdminDocumentProducerController (#2620)
Browse files Browse the repository at this point in the history
A few changes to bring this controller in line with the other admin UI
controllers:

* Remove its copy of the RedirectAttributes extension properties for setting
  success and failure messages. Those extensions are already available as
  top-level functions.

* Don't require its URL to have a trailing slash, which means no need for
  the auto-redirect to add a trailing slash. All the form target URLs in
  its HTML page are full paths, so there's no issue with relative paths
  needing the trailing slash to resolve properly.

* Simplify the redirect function and rename it to match the names of the
  redirect functions in other controllers.
  • Loading branch information
sgrimm authored Nov 20, 2024
1 parent 5585ec5 commit a7b37c1
Showing 1 changed file with 5 additions and 42 deletions.

0 comments on commit a7b37c1

Please sign in to comment.