Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
Advice on handling routing when using subdomains?

So currently I have different platforms of the application split like this.

app.example.io app.subdomain1.io and app.subdomain2.io.

Setting up the initial routes to be only accessible on certain platforms was easy. But how can I link or redirect to a different subdomain without hardcoding the URL? I am running the application locally, in a staging env, and eventually in production and don't want to change it every time.

For example after login from app.example.io/login I might want to go to app.subdomain1.io/homepage

Has anyone worked with this before?

Of course, I know I could write some custom logic to split up the URL and get access to the subdomain that way but I am trying to see if there is a better way.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!