Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How do I remove the numbers from the slugs in my blog and blogpost?

形象
odoo
1 备注
形象
丢弃
形象
odoo
-

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


4 答案
0
形象
odoo
最佳答案

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.

形象
丢弃
0
形象
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?

形象
丢弃
0
形象
odoo
最佳答案

Hello Milo,



  Odoo appends numbers to slugs (URLs) to ensure uniqueness, especially when titles are similar. To achieve cleaner URLs for your blog and posts, follow these steps:

  1. Ensure each blog and post has a unique title. Odoo often adds numbers when there's a title clash.

  2. If you're comfortable with technical adjustments, consider customizing the URL generation method in the website_blog module. This requires development skills.

  3. For a non-technical approach, you might need to delete and recreate the blog or post with a unique name to reset its slug. Remember, this could affect SEO and existing links.


For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html

形象
丢弃
0
形象
odoo
最佳答案

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.

形象
丢弃