D.S. and Coda key changes

How do I make the following example with the key change at the D.S. and Coda work? Currently I’ve added a blank measure with a dashed barline. Ideally Dorico should allow for this situation. But in my work around, if we were allowed to hide the barline it would look okay. (And no, I don’t want to go into Engraving and change the length of dashed bar lines).

I’d like to suggest a feature request to have such key signature changes supported in Dorico without having to do a work around.

As mentioned in my reply in the other thread in which you discuss this issue, ideally Dorico would indeed handle the unwinding of key and time signature changes, and clefs, around repeats, but at present it does not.