Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4130 Zobrazení

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
Zrušit
Nejlepší odpověď


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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
dub 25
1450
6
čvc 17
9360
1
dub 24
2239
2
zář 20
5129
3
pro 18
6737