diff --git a/apps/files_sharing/get.php b/apps/files_sharing/get.php
index a828989a8a513113103c8edd36ea3a9fb0601e18..e50a319ace47cf23a4dba5503b74a61f828cac92 100644
--- a/apps/files_sharing/get.php
+++ b/apps/files_sharing/get.php
@@ -40,17 +40,15 @@ if ($source !== false) {
 		}
 		// Make breadcrumb
 		$breadcrumb = array();
-		$pathtohere = "/";
+		$pathtohere = "";
 		foreach (explode("/", $subPath) as $i) {
 			if ($i != "") {
-				$pathtohere .= "$i/";
+				$pathtohere .= "/$i";
 				$breadcrumb[] = array("dir" => $pathtohere, "name" => $i);
 			}
 		}
 		// Load the files we need
 		OC_Util::addStyle("files", "files");
-		OC_Util::addScript("files", "files");
-		OC_Util::addScript("files", "filelist");
 		$breadcrumbNav = new OC_Template("files", "part.breadcrumb", "");
 		$breadcrumbNav->assign("breadcrumb", $breadcrumb);
 		$breadcrumbNav->assign("baseURL", OC_Helper::linkTo("files_sharing", "get.php")."?token=".$token."&path=");