We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f07972 commit b3c2899Copy full SHA for b3c2899
src/LfmPath.php
@@ -66,7 +66,10 @@ public function path($type = 'storage')
66
return $this->translateToLfmPath($this->normalizeWorkingDir());
67
} elseif ($type == 'url') {
68
// storage: files/{user_slug}
69
- return $this->helper->getCategoryName() . $this->path('working_dir');
+ // storage without folder: {user_slug}
70
+ return $this->helper->getCategoryName() === '.'
71
+ ? ltrim($this->path('working_dir'), '/')
72
+ : $this->helper->getCategoryName() . $this->path('working_dir');
73
} elseif ($type == 'storage') {
74
75
// storage on windows: files\{user_slug}
0 commit comments