While working on the #151 we found that this app isn't using the altinnPersistentContext set by the altinn.no and calling the /receipt/api/v1/users/current API every time to get the current language set by the user, which isn't working well for now as the /receipt/api/v1/users/current API is caching the output and therefore this app isn't getting the very recent change made by the user regarding the language in the frontend.
Steps To Reproduce
1.Log in to TT02 as 46886601549 (tenor login)
Select the person "POSSESSIV BILLETTLUKE" if asked to pick a reportee
Pick language any langauge, i.e. Nynorsk or English
Visit the Archive section of the messagebox.
Open one of the elements called "Tilgjengelig: formueinntekt-skattemelding-v2, 2022"
Observe that the messagebox is using the app id and not the app title/name.
Click the button "See submitted form"
Then go back to the "inbox" tab.
Change the language to something else.
Again visit the Archive section of the messagebox.
Open one of the elements called "Tilgjengelig: formueinntekt-skattemelding-v2, 2022"
Observe that the messagebox is using the app id and not the app title/name.
Click the button "See submitted form"
You'll see the language hasn't changed.
Tasks
[ ] Consider using the altinnPersistentContext cookie for now as the other app is using it.
[ ] Also try to find something better than cookie(1.e local storage or session) for this purpose.
Let's consider this completed. I had some strange behaviour with language switching between nb and en during one of my tests, but I've been unable to recreate the issue.
Description of the bug
While working on the #151 we found that this app isn't using the
altinnPersistentContext
set by the altinn.no and calling the/receipt/api/v1/users/current
API every time to get the current language set by the user, which isn't working well for now as the/receipt/api/v1/users/current
API is caching the output and therefore this app isn't getting the very recent change made by the user regarding the language in the frontend.Steps To Reproduce
1.Log in to TT02 as 46886601549 (tenor login)
Tasks
altinnPersistentContext
cookie for now as the other app is using it.Related Issue
151