Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2726 Visninger

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

Avatar
Kassér
Bedste svar

Hi Mohammed,

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

and override this method and change.

Thanks

Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
okt. 22
2073
3
mar. 25
2989
0
dec. 23
1454
0
sep. 23
1188
0
mar. 24
1047