Templates changes for a few clients.

This commit is contained in:
Norm Rasmussen
2023-05-01 17:07:21 -04:00
parent 3e6a6e5266
commit 26c55d54f6
27 changed files with 1128 additions and 9 deletions

View File

@ -207,3 +207,17 @@ Reach out to Gennet regarding language preferences for accounts.
If a user picks a language, update the property.
They would want a page per language, so app/en or app/es etc. This is a requirement.
### Sending details regarding Redirect problems
Text from Engineers (synopsis):
Lets imagine we redirect the user from page A to B using 301. Later we decided to change the redirect from A to C using
301. The user will be redirected to B because it was cached in their browser. Experience: User visits A > User was
redirected to B > Browser sees its a 301 redirection so it adds this redirect to cache > We change in NP from
A->B to A->C > User visits A > User was redirected to B (because his browser has this redirect in cache).
The only way to fix it its a requesting the user to clean cache in his browser. So if the user is unauthorized and goes
to app/courses, we will redirect him to sign_in page with 301. The browser will cache sign_in page, and the user will be automatically redirected to sign_in page when the user tries visit app/courses. This will cause a loop.
301 makes sense if the website they are accessing was permanently moved to other location. In this case they are trying to access courses list but are redirected to sign in page because they have to be authenticated before they can access it. If we redirected them from courses to sign in page with 301 the users browser would save the redirect location (sign in page) and whenever the user tried to access courses web page their browser would move them automatically to sign in page making courses page inaccessible for the user. The only way out of it is cleaning browsers cache. However once they cleared the cache they would remove the cookies as well. The cookies keep the information about users identity. This is helpful because with that they dont have to log in each time they visit our platform. But once the cookies are removed they would be again redirected to sign in page keeping them in this vicious circle. The reason to use 301 is to tell the browser “forget about this old location of the page you are accessing, this page is now here, also store this location and use it whenever you try to access this old location”.