Light Switch Terminals
Yes, the correct way to deal with this is to wirenut (or otherwise join in a listed manner) those two wires and a short pigtail together, then connect the pigtail to the new switch.