Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4007 Vistas

Hello

We have just moved over to Odoo. A lot of our previous URLs contained question marks (such as /seals-products.asp?intDepartmentId=73). These redirects/rewrites do not appear to be working and takes the user to the Page Not Found page.

For example:
Name: Catalog and Price List Download

Action: 301 Moved Permanently

URL From: /bbCMSrenderPage.asp?intPageId=12

URL To: /request_catalogue

Active: Yes

Sequence: 13

Our other redirects (without question marks in the from URL) work without issue.

Any suggestions?


Avatar
Descartar
Mejor respuesta


Hi Adam,

Firstly Enable the debug mode in Odoo to capture more detailed error messages
add debug=True to the Odoo configuration file (odoo.conf) and restart the Odoo server. that would be much  easer to identified ther error.

Secondly your can Use URL Rules in Odoo,
URL rules allow you to define custom routing for specific URLs or URL patterns. 
Configuration > URL Rules, and define a rule for your specific URL pattern 

(/bbCMSrenderPage.asp) with the query parameter (intPageId=12) and the corresponding target URL (/request_catalogue).


If the URL rules approach doesn't work for your specific case, you can create a custom controller in Odoo to handle the redirects. In the custom controller,

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
abr 25
1372
6
jul 17
9211
1
abr 24
2206
2
sept 20
5023
3
dic 18
6670