-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
paraglide:lang
cookie ignored when reloading url with no lang
in it
#183
Comments
Have you configured |
Awesome, it looks like We're using adaptor static to generate the site for our application. But since adding that key we're getting the error Have you had this before? |
Yeah, you'll probably need to edit the |
Hey @LorisSigrist I tried that, but that didn't seem to do anything.
import adapterAuto from '@sveltejs/adapter-auto';
import cloudflareWorkersAdapter from '@sveltejs/adapter-cloudflare-workers';
import staticAdapter from '@sveltejs/adapter-static';
function getAdapter() {
console.log('process.env.VITE_ADAPTER', process.env.VITE_ADAPTER);
switch (process.env.VITE_ADAPTER) {
case 'capacitor':
return staticAdapter({
strict: false,
pages: 'build/capacitor',
assets: 'build/capacitor',
fallback: 'index.html',
});
case 'cloudflare-workers':
return cloudflareWorkersAdapter();
default:
return adapterAuto();
}
} Do you have any suggestions on how I can debug this? |
I was able to resolve this redirect warning with here: sveltejs/kit#9386 (comment) by not adding the |
Hi!
I just implemented the language switcher in our application and I can see the cooking for
paraglide:lang
getting set.When remove all paths from the url to refresh back to the index page, the
paraglide:lang
gets set back to our default language.Am I missing something here?
We also build the application for Capacitor, which is known not to do that great with cookies.
Do I need to create a custom preference handling system to make sure the user gets served the correct page?
The text was updated successfully, but these errors were encountered: