Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2662 Переглядів

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
2012
3
бер. 25
2909
0
груд. 23
1410
0
вер. 23
1138
0
бер. 24
999