Single page language preservation
When that single page is now entered, the previously selected Norwegian language is gone, and the default English is presented to the user.
How to let the previously selected Norwegian language be preserved and presented to user when user now enter this single page?
$loc = \Localization::getInstance(); $loc->setLocale('en_US');
Just don't forget to replace the English Locale Code, 'en_US', with that of Norwegian.
Is there a chance alternatively to let this single page application/single_pages/user/details utilize the middleware usage?
The version is the latest one ie. 8.4.4.