Skip to content

Commit 9280245

Browse files
committed
Route subresource queries to regular search page
1 parent 349f1e2 commit 9280245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/pages/search/SearchResultRoute.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import { useConfig } from '../../config/ConfigProvider';
1313
* @returns the component to render
1414
*/
1515
export default function SearchResultRoute(props) {
16-
const { recordType } = useParams();
16+
const { recordType, subresource } = useParams();
1717
const config = useConfig();
1818

19-
const isNewSearch = get(config,
19+
const isNewSearch = !subresource && get(config,
2020
['recordTypes', recordType, 'serviceConfig', 'features', 'updatedSearch']);
2121

2222
return isNewSearch

0 commit comments

Comments
 (0)