That path seems definitive
And it could change with every new build
So it's best to get the correct AppId every time for a given AppTitle.
Microsoft.MicrosoftEdge_8wekyb3d8bbwe is the identifier for the Edge app. It can be determined by using Get-AppxPackage in PowerShell and sifting through the results for the Spartan / Edge and using the PackageFamilyName.
So there must be an api or registry key to retrieve that. As PowerShell can do it.