diff --git a/app/components/directory-listing/template.hbs b/app/components/directory-listing/template.hbs
index 5ed9e06..7a989e4 100644
--- a/app/components/directory-listing/template.hbs
+++ b/app/components/directory-listing/template.hbs
@@ -1,11 +1,20 @@
{{#each items as |item|}}
-
- {{#link-to "index"}}
- {{item-icon type=item.type}}
- {{item.name}}
- {{item.type}}
- {{/link-to}}
+ {{#if item.isFolder}}
+ {{#link-to "index" (query-params path=item.path)}}
+ {{item-icon type=item.type}}
+ {{item.name}}
+ {{item.type}}
+ {{/link-to}}
+ {{else}}
+
+ {{#link-to "index"}}
+ {{item-icon type=item.type}}
+ {{item.name}}
+ {{item.type}}
+ {{/link-to}}
+ {{/if}}
{{/each}}
\ No newline at end of file
diff --git a/app/services/storage.js b/app/services/storage.js
index 09fd518..fb5cdf2 100644
--- a/app/services/storage.js
+++ b/app/services/storage.js
@@ -97,7 +97,9 @@ export default Service.extend({
items.push(EmberObject.create({
name: name,
type: type,
- size: item['Content-Length'] || null
+ isFolder: type === 'folder',
+ size: item['Content-Length'] || null,
+ path: path + name
}));
});