Calendar page of events continuously reloads

Heather Aluma asked on March 16, 2023 03:52

Hi. On our site we have an events calendar on an events page. We also use an events repeater on certain pages to that you can see a list of upcoming events. The upcoming events list belong to the single category that is contained on that page, and on the events page, the calendar contains many categories. When you are on the calendar page, when you click on a date it goes to the event, but that page constantly reloads. The constant reloading does not happen when you link to the event from the events repeater list. We are using Kentico 11.

Originally, I thought that the issue had to do with the transformation text on the calendar page. After looking a little more into the issue, I am not sure. After all, the page is pulling the information and you go to the page, it's just that the page continually reloads. I did notice, however, that on the events repeater pages that when you go to the event, you go to a URL with the page name. That is unlike the calendar page link that goes to a page that contains the event date. I also noticed that there is an uncaught syntax error in the console, but it seems like this uncaught syntax error is on a lot of our pages. Is there a way to still break-up the events by category (on the calendar page) but instead link to the event name? Or is there another way to make the page stop reloading as soon as you get to it?

Transformation code for the href on the event repeater and the event calendar:

`<a href="<%# GetDocumentUrl() %>"><%# Eval("EventName") %>`

and <a href="/Miscellaneous/Events?cat={?cat?}&amp;date={%FormatDate(EventDate)%}" class="event-item"><span class="event-name">{%EventName%}</span></a>

   Please, sign in to be able to submit a new answer.