Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4133 Tampilan

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
Buang
Jawaban Terbai


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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Apr 25
1450
6
Jul 17
9361
1
Apr 24
2239
2
Sep 20
5129
3
Des 18
6740