diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php
index d121ee25361a6f7da1bc917748961d17c5f3da6d..90226e5614402981318fc32ce67dd59735bd3edf 100644
--- a/lib/private/Files/Cache/Wrapper/CacheJail.php
+++ b/lib/private/Files/Cache/Wrapper/CacheJail.php
@@ -290,6 +290,7 @@ class CacheJail extends CacheWrapper {
 	 */
 	public function getPathById($id) {
 		$path = $this->cache->getPathById($id);
+		$path = $this->getSourcePath($path);
 		return $this->getJailedPath($path);
 	}