Page infinitley reloads for another culture

Alistair DeJonge asked on October 18, 2018 16:24

We have a site running multiple cultures, with the default being en-US. We generally create pages in this culture first and then copy them into other English language cultures, or submit them for translation.

For a number of pages we have created a template that has a staticHTML web part with some JavaScript in that loads the page content dynamically. These pages work fine in the default en-US culture, but when we copy these pages into another culture (eg en-CA), the page infinitely refreshes on the front end.

Here is an example: http://sc-prod.shaw-cloud.com/en-ca/products/collections/inside-shapes

When you switch to Canada (en-CA) and go to the above page, it will constantly refresh. The en-US version of this page does not do this.

Correct Answer

Juraj Ondrus answered on October 19, 2018 06:40

Hi,
Works for me fine in the same as for David. I do not have any redirects nor reloads. I tried several cultures. It is strange - but we are located in EU - so maybe this can play some role here. Anyway, I would recommend checking the custom JavaScript and try debugging it.

0 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on October 18, 2018 16:50

Hi,

the url you supply works for me. Switched between en-us and en-ca a few times... set it as default or one-time visit. But still just works. Try clearing all your cookies or a different browser and see if that works?

Do you know what is redirecting you? Is it in the browser (and can you see it using Fiddler or something) or is it IIS? And what is it switching between en -> ca -> en or something like https or www with or without?

(ow and remove the Andy user)

0 votesVote for this answer Mark as a Correct answer

Alistair DeJonge answered on October 18, 2018 16:57

The re-direct is happening within the JavaScript. This is the case for the entire site. Other pages dpon't seem to have this problem when switching between cultures, but these pages that have their content loaded dynamically through a JS script seem to be doing it for me. I have tried all three major browsers and am experiencing the same thing, cached cleared and all.

0 votesVote for this answer Mark as a Correct answer

Alistair DeJonge answered on October 19, 2018 14:47

Thank you. It looks like it was some of the custom JS for those specific templates.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on October 19, 2018 14:50

  • Don't forget to remove user Andy!
1 votesVote for this answer Mark as a Correct answer

Alistair DeJonge answered on October 19, 2018 17:41

David, what was the last name you used to register a user?

0 votesVote for this answer Mark as a Correct answer

Alistair DeJonge answered on October 19, 2018 17:43

Never mind, you meant a Kentico user. I have deleted it now.

0 votesVote for this answer Mark as a Correct answer

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