By Davy on Wednesday, 27 April 2022
Posted in Technical Issues
Likes 0
Views 550
Votes 0
Before my url routing was simpel

domain/categorie/title

I don't understand why the routing now is changed to

http://yoursite.com/menu/category/title

Is there a way to get rid of the /menu/

A example:

https://www.offirent.be/nieuws/diensten/virtueel-kantoor

I don't want the /nieuws/ there. Before it was working like this and all my google ads are going to this url

https://www.offirent.be/diensten/virtueel-kantoor
Hello Davy,

After further check your EasyBlog SEO settings, it seems like someone has changed the Entry routing behaviour to use 'Grid Menu' which causing EB to not able to get the menu item for the category you've added on your Joomla menu.


Anyway, I've re-configure your EasyBlog SEO settings:

1. Entry Routing Behavior -> Use Routing From -> Category Menu
2. URL Format For Entry View -> Simple

I then purge the sef links from your sh404sef.

Now your blog post sef is respecting your category menu item. E.g.

https://www.offirent.be/faq/maatschappelijke-zetel-thuis

Please verify again.

Hope this help and have a nice day !
Sam
·
Wednesday, 27 April 2022 19:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Davy,

Joomla require the menu item to be added into the SEF link so that Joomla know how to route the SEF links back to EasyBlog when someone access the post link.

I see you are using sh404sef component, if you want to remove the menu alias from our post sef link, what you can do is to edit the file `JOOMLAcomponents/com_easyblog/sef_ext/com_easyblog.php` and look for below code at line 62:


$title[] = $prefix;


and replace the above code with:


if ($view != 'entry') {
$title[] = $prefix;
}



Remember to do a backup of this file first before you apply the above custom code.

Also, after yo've added the custom code, remember to purge your sef links from your sh404sef.

Hope this help and have a nice day
Sam
·
Wednesday, 27 April 2022 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
I really don't understand this, becausse it was allways working like this. If you search in google

https://www.google.com/search?q=de+offirent+boys&oq=de+offirent+boys&aqs=chrome..69i57.2674j0j15&sourceid=chrome&ie=UTF-8

https://prnt.sc/2aEJd9IiHX3y

You can see that it was there the whole time

This URL for example:
https://www.offirent.be/faq/de-offirent-boys

is now changed to this one without I was knowing it. This is bad for me I think:
https://www.offirent.be/nieuws/faq/de-offirent-boys

When I change the code and when I do a update I think the URL routing will change again later?
·
Wednesday, 27 April 2022 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you!

You have rescued the rest from my day!

Have a good one!
·
Wednesday, 27 April 2022 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi ,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusion in the future. Please start a new thread if you have any other issues in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Wednesday, 27 April 2022 19:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post