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

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
Discard
Best Answer


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
Discard
Related Posts Replies Views Activity
0
Apr 25
1377
6
Jul 17
9222
1
Apr 24
2210
2
Sep 20
5034
3
Dec 18
6677