Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2696 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
říj 22
2038
3
bře 25
2938
0
pro 23
1423
0
zář 23
1149
0
bře 24
1005