Skip to content

Commit

Permalink
Merge pull request #36 from culturecreates/develop
Browse files Browse the repository at this point in the history
fix: reverted the locale to query param from
  • Loading branch information
sahalali authored May 30, 2024
2 parents 9fd62c0 + 4e259a0 commit 4ea90d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/card/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import WidgetContext from '../../context/WidgetContext';
const Card = ({ id, name, place, image, startDate, endDate }) => {
const [imgError, setImgError] = useState(false);
const { widgetProps } = useContext(WidgetContext);
const { calendar } = widgetProps;
const { locale, calendar } = widgetProps;

let redirectionUrl = `${process.env.REACT_APP_API_URL}resource/${id}?calendar=${calendar}`;
let redirectionUrl = `${process.env.REACT_APP_API_URL}resource/${id}?calendar=${calendar}&locale=${locale}`;

return (
<li
Expand Down
4 changes: 2 additions & 2 deletions src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const Footer = () => {
const { t } = useTranslation();
const { widgetProps, totalCount } = useContext(WidgetContext);

const { calendar, calendarName } = widgetProps;
let redirectionUrl = `${process.env.REACT_APP_API_URL}calendars/${calendar}/events/redirect`;
const { calendar, calendarName, locale } = widgetProps;
let redirectionUrl = `${process.env.REACT_APP_API_URL}calendars/${calendar}/events/redirect?locale=${locale}`;

const submitHandler = (event) => {
event.preventDefault();
Expand Down

0 comments on commit 4ea90d9

Please sign in to comment.