Nested add forms of multiple tables via form buttons

You may have correctly used the word redirection, and are now misusing “routing”. :slight_smile: Routing is basically what figures out which controller action to call for a particular URL; redirection is the act of sending the visitor to a new URL after completing some process.

Redirecting to index is normal after add, but you haven’t shown any code that includes a redirect call. And this may explain your other “bug”: if you’re calling debug and then redirect, then the output from the debug call will be lost forever. Debug output is not like flash text, which persists in the session between page loads.