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.
2 parents 0a1d237 + b3c2899 commit 53e5175Copy full SHA for 53e5175
src/LfmPath.php
@@ -69,7 +69,10 @@ public function path($type = 'storage')
69
return $this->translateToLfmPath($this->normalizeWorkingDir());
70
} elseif ($type == 'url') {
71
// storage: files/{user_slug}
72
- return $this->helper->getCategoryName() . $this->path('working_dir');
+ // storage without folder: {user_slug}
73
+ return $this->helper->getCategoryName() === '.'
74
+ ? ltrim($this->path('working_dir'), '/')
75
+ : $this->helper->getCategoryName() . $this->path('working_dir');
76
} elseif ($type == 'storage') {
77
78
// storage on windows: files\{user_slug}
0 commit comments