Updated OpenURL code to match recent refactoring.