Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda