You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/09/27 18:00:20 UTC

airavata-php-gateway git commit: fixing file not download issue

Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop f421e1e06 -> 8251cbcc6


fixing file not download issue


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/8251cbcc
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/8251cbcc
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/8251cbcc

Branch: refs/heads/develop
Commit: 8251cbcc6002188f92f4de3f1f8bc9fa58758904
Parents: f421e1e
Author: scnakandala <su...@gmail.com>
Authored: Tue Sep 27 14:00:17 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Tue Sep 27 14:00:17 2016 -0400

----------------------------------------------------------------------
 app/routes.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/8251cbcc/app/routes.php
----------------------------------------------------------------------
diff --git a/app/routes.php b/app/routes.php
index e26eadf..b2a8810 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -136,7 +136,7 @@ Route::get("download", function(){
 
         //TODO check permission
         $path = str_replace($dataRoot, "", parse_url($currentOutputPath, PHP_URL_PATH));
-        $downloadLink = Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . $path;
+        $downloadLink = URL::to('/') . Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . $path;
         return Response::download( $downloadLink);
     }
 });