Hi Team,
We need to implement language locale in the URL after the domain name in our OutSystems 11 Reactive application.
Expected URL structure:
www.mydomain.com/en-US/ModuleName/PageName
Could you please confirm:
Is this structure supported in OutSystems 11 Reactive?
What is the recommended approach to configure the URL Pattern for this?
Should the locale be handled at the screen level or via a base layout?
Are there any SEO considerations or limitations we should be aware of?
Please advise on the best practice implementation.
Thanks.
To implement a language locale in the URL for an OutSystems 11 Reactive application, follow these steps, keeping SEO considerations and best practices in mind:
You can include the language locale directly in the URL path (e.g., /en/home, /es/home) or as a query string (e.g., /home?locale=en). OutSystems Reactive apps allow you to configure custom screen URLs and use the path-based structure, which is better for SEO as it avoids unnecessary query parameters.
/en/home
/es/home
/home?locale=en
To configure this:
{locale}
/Home
locale
/en/Home
To configure localization in your Reactive app:
SEO best practices recommend using simple and descriptive URLs that include the language locale. Follow these principles:
/en/product-details
/en/ProductDetails
/product-details
By following these guidelines, you can efficiently implement language locale in the URLs of your OutSystems 11 Reactive application while optimizing it for SEO.
Hi Neo,
However, we are not able to configure this in Service Studio. Specifically, we are unable to edit the Page Name / URL Pattern to include the {Locale} variable before the page name (e.g., {Locale}/Home). Service Studio does not allow us to add {Locale} before the page name as described in the documentation.
Could you please advise if this configuration is supported in OutSystems 11 Reactive applications? If so, could you share the recommended approach or steps to implement it?
Thanks,Chandra Vikas Sharma
I think so. Locale is part of the rules you associate with each URL.
https://success.outsystems.com/documentation/11/building_apps/search_engine_optimization_in_apps/seo_for_outsystems_reactive_web_apps_vs_traditional_web_apps/site_rules_for_seo_friendly_urls/
Dear Chandra,
Please try this approach
Add an input parameter to each screen.
Pass the language code through the query string.
Configure the redirect rules from Service Center.
Hi @Manikandan Sambasivam,
Thanks for your reply.
We would like to clarify the requirement. We need to add the locale parameter immediately after the domain name, not at the end of the URL. Currently, we have already achieved the locale parameter at the end of the URL.
Please see the examples below:
Current URL: (already done)
www.mydomain.com/ModuleName/PageName/en-US
Desired URL: (we need solution for this
)www.mydomain.com/en-US/ModuleName/PageName
Thanks
CV
Hi @Chandra Vikas Sharma ,
You only need to update the Redirect URL in the Service Center.
I have shared the screenshots with you via email, as the customer portal address shown in the screenshots cannot be shared on the forum.
Hi All,
Could you please let me know the reason for the dislike? I tested the solution before posting my reply in the thread and shared it based on my findings. Since I spent time validating it before responding, it would be helpful to understand the concern so I can improve the response if needed.