This allows bypassing the last opened behavior for certain cases where that's not desirable. Fixes #1951