I attempted to use a link that included search params in the global navigation for toolpad, but it was slicing of the search params.
Here is the diff that solved my problem:
diff --git a/node_modules/@toolpad/core/shared/Link.js b/node_modules/@toolpad/core/shared/Link.js
index cfe8842..a50dba5 100644
--- a/node_modules/@toolpad/core/shared/Link.js
+++ b/node_modules/@toolpad/core/shared/Link.js
@@ -21,7 +21,7 @@ export const Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
return event => {
event.preventDefault();
const url = new URL(event.currentTarget.href);
- routerContext.navigate(url.pathname, {
+ routerContext.navigate(url.pathname + url.search, {
history
});
onClick?.(event);
Search keywords:
I attempted to use a link that included search params in the global navigation for toolpad, but it was slicing of the search params.
Here is the diff that solved my problem:
Search keywords: