Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2733 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ต.ค. 22
2079
3
มี.ค. 25
3022
0
ธ.ค. 23
1474
0
ก.ย. 23
1217
0
มี.ค. 24
1052