Skip to content

Commit

Permalink
Encode media URL properly
Browse files Browse the repository at this point in the history
  • Loading branch information
aldahick committed Jul 6, 2024
1 parent cfd704f commit b49a3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/components/file/FileListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ export const FileListItem: React.FC<{ child: IMediaItem }> = ({ child }) => {
</div>
);
}
return <Link to={`/media/${child.key}`}>{listItem}</Link>;
return <Link to={`/media/${encodeURIComponent(child.key)}`}>{listItem}</Link>;
};

0 comments on commit b49a3a7

Please sign in to comment.