Bug: When redirecting user to a record

I have a module A with an editable record page. Inside this page, there is a record list linked to module B. I was trying to redirect a user after they create a record in module B that they were not supposed to. So, here is the workflow:


The record ID that I put there it’s the record ID from the record of the module A that I want the user to go back

It kinda works because it redirects to the right place, but it also refreshes the page and shows a record from module A with the same record ID as the record in module B that was not supposed to be created.


If I try to find this record in module A, it doesn’t exist.