Update api.js
Update api.js

data.redirect_url`` can be in two differect formats:
as absolute URL, including domain, and as path only, without domain
That is why we convert it always to the FULL URL

Paqmind/freya,askaza/freya