What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Redirect url to grant screen does not have a language parameter

Redirect url to grant screen does not have a language parameter

peeteko
Shopify Partner
2 0 0

Hi 

The url described on https://shopify.dev/apps/auth/oauth/getting-started#redirect-to-the-grant-screen-using-a-3xx-redirec... does not have a locale or language parameter.

 

We are building a page in our application where customers can link there shopify store. In our application the users can switch their language via a language selector. So when we redirect to the authorize page we would like to stay in the same language. But the url does not contain a language parameter. 

Is this something that can be added at shopify side or is there a way to fix this another way?

 

https://{shop}.myshopify.com/admin/oauth/authorize?client_id={client_id}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode}

 

 

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 525

Hey @peeteko - generally, the Shopify admin's language is set by the merchant's settings and this language is the one that appears within the grant page. This is because an app first needs to be authorized before it is accessible from within the Shopify admin.


 

I do get where you're coming from here though - it would make the process more seamless. I can try to bring this to my team to see if we're able to get a definitive answer on any potential workarounds. Could you describe the workflow of the app that leads to the authorization grant page? For example, does the merchant set their choice of language while in your app on another page before they're redirected to their Shopify store?


 

Let me know if we can clarify anything further on our end - hope to hear from you soon.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

peeteko
Shopify Partner
2 0 0

We indeed start from our application where the customer can change their language. From that page we redirect to the authorization page. But the redirect url has no language parameter.