Hello,
I am trying to deploy a localized Angular application on App Platform but I am facing some trouble with the routing.
Without localization, it deploys fine.
After localization, a copy of the assets is made for every locale:
I tried creating a recourse per locale, changing Route Path:
With this configuration, the English version works under /, but everything else seems to also redirect to / as well
Is such a use case supported?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey Nodas 👋
Interesting setup! I haven’t done this exact localization flow on App Platform with Angular, but from what you’re describing, it sounds like a routing/config issue rather than a limitation of App Platform itself.
If Angular is using path-based routing, App Platform might not be handling the localized subpaths like /sp
correctly by default — especially since single-page apps need all routes to be redirected to index.html
, otherwise you get unexpected fallbacks to /
.
You might be able to fix this by setting up custom rewrite rules, but I don’t think App Platform currently supports per-path rewrites like you’d do in a traditional web server config (e.g., Nginx or Netlify _redirects
).
You could try setting index.html
as the catch-all fallback for all routes, even for localized paths.
Alternatively, structure your app so all languages are handled by a single entry point and Angular takes care of the routing internally.
If that doesn’t help, I’d recommend reaching out to support tp see of they could help out here:
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.