adjust advanced search for logged in user

This commit is contained in:
2022-01-27 14:02:46 +00:00
parent cb9bc970b6
commit f5c80bb5e7
7 changed files with 553 additions and 29 deletions
+8 -8
View File
@@ -23,7 +23,7 @@ let AdvancedSearch = (props) => {
const router = useRouter();
const { locale } = router;
const { LPAData, onSubmit, handleSubmit } = props;
const { LPAData, onSubmit, handleSubmit, myportal } = props;
const appealOptionsObj = _.isEmpty(props)
? [{}]
@@ -304,13 +304,13 @@ let AdvancedSearch = (props) => {
: "";
router.replace(
(router.locale == "cy"
? "/fymhorth/canlyniadauchwiliouwch"
: "/myportal/advancedsearchresults") + searchString,
null,
{
shallow: true,
}
router.locale == "cy"
? (myportal == true ? "/fymhorth" : "") +
"/canlyniadauchwiliouwch" +
searchString
: (myportal == true ? "/myportal" : "") +
"/advancedsearchresults" +
searchString
);
};