Fix trailing slashes for toggling state.