Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2714 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Mohammed,

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

and override this method and change.

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 22
2052
3
thg 3 25
2945
0
thg 12 23
1430
0
thg 9 23
1153
0
thg 3 24
1009