Redirect in deployment with Bottle package leads to run.app url

Problem description:

I’m using Bottle package instead a Flask for a web server.
I have deployed it and when i use redirection, it leads to a *.run.app url

Expected behavior:

It should keep the name-of-deployment.replit.app url even when redirecting

Steps to reproduce:

Create a small web app with bottle, create a route which redirects to “/” and the url change to a long line of code.run.app

Bug appears at this link:

Go to this site : https://testredirect.replit.app/
Then add “redirect” to the url to be redirected to the “/”
It should change the url to : xxxx330-8128-aafad0851dd8-uoiw7ovf4q-uc.a.run.app

It works fine with Flask so it may be an issue with the Bottle module but maybe there is also an issue with deployment redirections ?
Thanks

it seems to be fixed, thanks for your work