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

219
Views
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 answers
Answer question

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 Report
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!