Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2681 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 22
2028
3
mrt. 25
2926
0
dec. 23
1417
0
sep. 23
1145
0
mrt. 24
1002