Problem redirecting host


I have developed a rails 5 application that works fine in http://localhost:3000/

Now, I need that this application starts in localhost:3000/example, and that links goes through this new host, (localhost:3000/example/users/new for example). I have got that assets and javascripts works fine in localhost:3000/example, but links still redirects to the old one (for example, localhost:3000/users/new).

Anyone know how can I fix it? Thanks in advance.

Hey @antoniocxv,

Would you please post the content of config/routes.rb file?