Fixing wrong redirect to desktop app url. Fixes #875.

Please review.