跳至內容
選單
此問題已被標幟
3 回覆
2050 瀏覽次數

My blogpost has url /blog/recipes-3/name-of-recipe-2

I would prefer if it were just /blog/recipes/name-of-recipe

頭像
捨棄

yes, even I had a similar question, any moderator knows answer to this , please do help


最佳答案

I contacted the support with same question. For this ridiculous behavior (adding numbers in URLs) they said customization is needed and I have to find and pay someone :)
I mean for other blog platforms choosing URL structure is a very basic and normal option but not in Odoo.

頭像
捨棄
最佳答案

I’ve come across the same issue before, and usually those numbers appear in slugs when there’s already an existing page or post with the same title. Odoo adds them to avoid duplicate URLs. One workaround is to check for duplicates and then edit the slug manually in the backend so it stays clean. Another option is to use a custom module or rewrite rules if you want more control over how slugs are generated.

Did you notice if the numbers are being added only for certain posts, or does it happen every time you create a new blog entry?

頭像
捨棄
最佳答案

Did you find the solution? I'm trying to create the AI ​​module here on Odoo Premise, but without success. I'm using Odoo 19.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
Login Website 已解決
3
9月 25
148468
1
9月 25
1142
4
9月 25
5855
2
8月 25
1229
5
8月 25
10581