Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
2674 Представления

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

Аватар
Отменить
Лучший ответ

Hi Mohammed,

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

and override this method and change.

Thanks

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
окт. 22
2020
3
мар. 25
2921
0
дек. 23
1414
0
сент. 23
1143
0
мар. 24
1001