Language routing in JSS apps
Version: 22.x
Sitecore JSS does not dictate your route/URL structure. JSS sample applications implement basic routing that follows the Sitecore route item hierarchy by default.
If your use cases require it, you can modify the default routing system, but keep in mind that it is much simpler to run the application in integrated mode and therefore allow Sitecore content authors to edit the content for the application when the URL structure for the JSS application follows the route item structure in Sitecore.
The sample apps demonstrate routing using language prefixes and can handle route formats such as /about
, /en/about
, or /es-US/about
.