Respect "start_url" from manifest when launching web apps
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Râu Cao
2023-11-20 13:30:23 +01:00
parent bdf5a18ad4
commit 9a9947f9ad
3 changed files with 91 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ class Services::RsAuthsController < Services::BaseController
def launch_app
auth = current_user.remote_storage_authorizations.find(params[:id])
launch_url = "#{auth.url}#remotestorage=#{current_user.address}&access_token=#{auth.token}"
launch_url = "#{auth.launch_url}#remotestorage=#{current_user.address}&access_token=#{auth.token}"
redirect_to launch_url, allow_other_host: true
end