Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ You can also check the
- Add Sentry integration back
- Refactoring
- Incorporate the Swiss-Federal-CI library into this repository.
- Fixes
- Sanitize urls for links in tables
- Maintenance
- Set Maptiler API key from `MAPTILER_API_KEY` environment variable at
runtime, to avoid having to rebuild the application when the key is rotated
Expand Down
3 changes: 2 additions & 1 deletion app/charts/table/linked-cell-wrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sanitizeUrl } from "@braintree/sanitize-url";
import { Link, Theme } from "@mui/material";
import { makeStyles } from "@mui/styles";
import { ReactNode } from "react";
Expand Down Expand Up @@ -39,7 +40,7 @@ const getLinkHref = (
? `${iriValue}`.split("/").pop() || iriValue
: rawValue;

return `${baseUrl}${value}`;
return sanitizeUrl(`${baseUrl}${value}`);
};

export const LinkedCellWrapper = ({
Expand Down
Loading