Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
2739 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
lokak. 22
2081
3
maalisk. 25
3033
0
jouluk. 23
1475
0
syysk. 23
1220
0
maalisk. 24
1057