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

224
Vistas
Redirecting to another page from a different flask microservice

I'm currently building up a microservice architecture with flask. I've been trying to figure out how to redirect users from one service's UI to another service's UI. The services will be hosted on AWS upon completion so hardcoding links wouldn't suffice.

For example: Submitting a form at localhost:8000/form will redirect the user to localhost:8001/anotherPage

Is there anything I can do within the html's javascript code or within flask python code? Appreciate any help!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The best way to do it is register an event in JavaScript

Then run the redirect command as

window.location.href = "http://www.w3schools.com";

function gohere(){
window.location.href = "http://www.w3schools.com";
}


document.getElementById("myBtn").addEventListener("click", gohere);
<button id="myBtn">click here</button>

You could also call the even automatically on window load .JavaScript is by default the client side goto scripting for events

about 4 years ago · Juan Pablo Isaza Denunciar
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