-1

today I had a problem, I tried to pass an argument without make it visible, but if I use: return redirect(url_for('results.get_chapters', title=button)) the variable "button" is visible on the link for example:

https://localhost:5000/variabletext

Anyone knows a solution without using session method from Flask (it can create problems on my code)?

davidism
  • 121,510
  • 29
  • 395
  • 339
tonno7103
  • 57
  • 4

1 Answers1

1

redirect is a get call, so it uses the url. use a post-call instead.

Routerdieb
  • 39
  • 5