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

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
10月 22
2052
3
3月 25
2945
0
12月 23
1430
0
9月 23
1153
0
3月 24
1009