Go back to the previous URL immediately.
Move down one card.
Insert code from the previous card.
Insert code from the previous URL.
Provide a key / button to go back to the previous URL.