Wrong directory is opened when "BuildOptions.ShowBuiltPlayer" is used
Unity: Windows
Fixed
2023.3.X
2023.2.X
2023.2.0a12 onwards
2023.1.X
2022.3.X
2021.3.X
2021.3.26f1 onwards
Editor: Fix BuildOptions.ShowBuiltPlayer on Windows not working when the player build path contains ".." (parent directory).
Reproduction steps:
1. Open project “BuildScriptBugReport” in Windows Editor
2. Select “Builds\Windows Build” in the Editor menu (This is a custom script that adds an editor button to the top off the unity editor)
Expected result: the folder locating the built Player is opened after compiling (The built project should be located within a build folder of the editor project)
Actual result: the “Documents” folder is opened after compiling (The build is not located here)