Solved issue #31

Solved https://github.com/privly/privly-applications/issues/31
You should use this function for getting the application URL: https://github.com/privly/privly-applications/blob/master/shared/javascripts/parameters.js#L72