ссылки при переходе с шильдика меняются в зависимости от того прод это или нет

This commit is contained in:
Tamara 2024-04-24 01:25:07 +03:00
parent bac3f9b7c1
commit bff5abe1fc
2 changed files with 4 additions and 4 deletions

@ -321,12 +321,12 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
/> />
<Typography sx={{ color: theme.palette.text.primary }}> <Typography sx={{ color: theme.palette.text.primary }}>
С&ensp; С&ensp;
<Link href={"https://shub.pena.digital/ppdd"} target="_blank"> <Link href={`https://${window.location.hostname.includes("s") ? "s" : ""}hub.pena.digital/ppdd`} target="_blank">
Положением об обработке персональных данных{" "} Положением об обработке персональных данных{" "}
</Link> </Link>
&ensp;и&ensp; &ensp;и&ensp;
<Link <Link
href={"https://shub.pena.digital/docs/privacy"} href={`https://${window.location.hostname.includes("s") ? "s" : ""}hub.pena.digital/docs/privacy`}
target="_blank" target="_blank"
> >
{" "} {" "}

@ -40,7 +40,7 @@ export const Question = ({
questionSelect, questionSelect,
}: Props) => { }: Props) => {
const theme = useTheme(); const theme = useTheme();
const { settings, show_badge } = useQuizData(); const { settings, show_badge, quizId } = useQuizData();
return ( return (
<Box <Box
@ -97,7 +97,7 @@ export const Question = ({
{show_badge && ( {show_badge && (
<Link <Link
target="_blank" target="_blank"
href="https://quiz.pena.digital" href={`https://${window.location.hostname.includes("s") ? "s" : ""}quiz.pena.digital/squiz/quiz/logo?q=${quizId}`}
sx={{ sx={{
mt: "20px", mt: "20px",
alignSelf: "end", alignSelf: "end",