Odoo 10 websites not redirecting correctly after database moved.
I had to switch domains so I backed up my database and imported it with the new domain name for the database name. Everything works except the front end websites. They are constantly getting redirected to http, so the page load speed is really bad.
Every page fist does a 302 redirect to http and when it fails a 302 redirect to https.
2019-05-07 06:34:20,267 7860 INFO new.domain.si<http://new.domain.si> werkzeug: 127.0.0.1 - - [07/May/2019 06:34:20] "GET / HTTP/1.0" 302 -
The web.base.url is set to https://new .domain.si, the odoo.conf has the proxy_mode = True and in my nginx site conf it has the proxy_set_header X-Forwarded-Protto https;.
I found that if I change the website menu parameter from "/contact-us" to "https://new .domain.si/contact-u" everything works as it should. But hard coding links is a NO GO.
Is there a setting that I missed or do I have to do a change in the database? When I'm in the odoo "backend" everything works.