Skip to content

Commit f65cdd2

Browse files
committed
Dont add trailing slash to file manager row NavLink
1 parent 085fa8d commit f65cdd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/scripts/components/server/files/FileObjectRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Clickable: React.FC<{ file: FileObject }> = memo(({ file, children }) => {
4545
</div>
4646
:
4747
<NavLink
48-
to={`${match.url}/${file.isFile ? 'edit/' : ''}#${destination}`}
48+
to={`${match.url}${file.isFile ? '/edit' : ''}#${destination}`}
4949
css={tw`flex flex-1 text-neutral-300 no-underline p-3 overflow-hidden truncate`}
5050
onClick={onRowClick}
5151
>

0 commit comments

Comments
 (0)