language routing
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user