Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4163 Widoki

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?


Awatar
Odrzuć
Najlepsza odpowiedź


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,

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 25
1467
6
lip 17
9388
1
kwi 24
2245
2
wrz 20
5164
3
gru 18
6751