language routing

This commit is contained in:
2021-09-28 13:36:19 +01:00
parent 475c9715fc
commit 5f9d239b50
19 changed files with 206 additions and 82 deletions
+4 -1
View File
@@ -77,7 +77,10 @@ let CaseSearch = (props) => {
const onHandleSubmit = (values) => {
spinnerState();
router.replace({
pathname: "/searchresults",
pathname:
router.locale == "cy"
? "/canlyniadauchwilio"
: "/searchresults",
query: { q: values.basicSearch },
shallow: true,
});