تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2671 أدوات العرض

I am working on a website module and blogs. In terms of the Blog- URL, I would like to remove the ID from the URL, does anyone can help me with this issue? 

For instance, 

the current behavior is 

http://localhost/blog/blog-12/post-13

How to convert the above-mentioned URL to the expected behavior as follows:

http://localhost/blog/blog/post

الصورة الرمزية
إهمال
أفضل إجابة

Hi Mohammed,

Based on your requirement you need to inherit blog.post model in your custom module.

and override this method and change.

Thanks

الصورة الرمزية
إهمال
أفضل إجابة

Hi

We have the same need

how to remove those ids from the urls

it looks not good at all, for visitors and also for Google

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أكتوبر 22
2016
3
مارس 25
2920
0
ديسمبر 23
1411
0
سبتمبر 23
1142
0
مارس 24
1000