Skip to content

Commit a07e6bd

Browse files
authored
Merge pull request pterodactyl#2687 from occanowey/fix/file_manager_404
Dont add trailing slash to file manager rows
2 parents 9707da8 + f65cdd2 commit a07e6bd

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)