Switching to local view and back (shortcut "Numpad /")

Hello,
wondering whether there is any way i can prevent camera zoom/position change when switching between local and gloabl views (shortcut “Numpad /”)? Thank you!

Shift+H if you want the view not to change is one option.