fixup "ensure we stay in overlay when navigating (link or form)"

I am not sure why the previous version worked when I tested it.