1daf8db470
Introduces a `resolve_return_path` function to determine the redirect target after a case action. This function prioritizes the `Referer` header for a more contextual redirect, falling back to the default case list page if the header is absent or invalid. Additionally, this commit refactors the UI elements for actions on the case detail and case list pages, improving organization and clarity.