Skip to Content
Menu
This question has been flagged
1 Reply
2453 Views

homepage (localhost:8069) redirects to login (http://localhost:8069/web/login?redirect=http%3A%2F%2Flocalhost%3A8069%2F). 


i have not set up any redirects in the website config. where does this redirect come from?

Avatar
Discard
Author

Im using odoo 11 and i have webpage builder installed

Best Answer
when you hit the main url . Odoo call the function of
 
@http.route('/', type='http', auth="none")
defindex(self, s_action=None, db=None, **kw):
    return request.redirect_query('/web', query=request.params)

that is in the controllers/main.py file in web module that function redirect to you /web url after checking the user session if not user session it will redirect to web/login.
in web/login after users credentials checking the user redirects to home page or back to it if credentials fails.
In your case check the web/login may be inherit in some module.
or you can refer to this


this

Avatar
Discard