Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2670 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Mohammed,

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

and override this method and change.

Thanks

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
oct. 22
2016
3
mar. 25
2920
0
dec. 23
1411
0
sept. 23
1142
0
mar. 24
1000