simplify & fix DocumentManager::openUrl()