Advertisement

Remove Categories from URL but keep in Breadcrumbs Topic is solved

This forum is for general questions about extensions for Joomla! 5.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Roland_S
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Apr 12, 2024 2:16 pm

Remove Categories from URL but keep in Breadcrumbs

Post by Roland_S » Wed May 15, 2024 7:25 am

Hello everyone!

I have the following problem:

I would like that on our site, when you click on a post in the main menu, the categories are NOT in the URL.
But I still want the categories of the post to be in the breadcrumbs. (See screenshot).

So I tried to work with a blind menu and to link from the main menu visible in the frontend only to the alias in the blind menu, where everything is in one level, where the link to the post itself is then made.

The only problem is (of course) that the URL is then as I want it, i.e. without the categories. But in the breadcrumbs it only says "Home > POST".

Is there any way to solve this so that it is like this?

Url:
https://www.example.org/POST

Breadcrumb:
Home > CATEGORY1 > CATEGORY2 > POST

Joomla Version used: 5.1.0

edit: to be precisely: not the categories are used and shown in url and breadcrumbs, but the menu structure
You do not have the required permissions to view the files attached to this post.
Last edited by imanickam on Thu May 16, 2024 6:35 am, edited 1 time in total.
Reason: Moved topic » from General Questions/New to Joomla! 5.x to Extensions for Joomla! 5.x

Advertisement
User avatar
Pavel-ww
Joomla! Ace
Joomla! Ace
Posts: 1713
Joined: Tue Jun 30, 2020 12:17 pm

Re: Remove Categories from URL but keep in Breadcrumbs

Post by Pavel-ww » Wed May 15, 2024 8:55 am

Hi. Breadcrumbs are directly related to the URL structure and are formed from this structure. Therefore, this is not possible. And in general, the reason you want to do this is not clear. It will not be logical and will confuse the user.

Roland_S
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Apr 12, 2024 2:16 pm

Re: Remove Categories from URL but keep in Breadcrumbs

Post by Roland_S » Thu May 16, 2024 5:42 am

Hi! Thanks for the reply.
I found a solution with the Plugin "Direct Alias".
The reason is, that I want to keep the urls as short as possible.
I dont think it's confusing for users, since only a few ever will look at the url of a page in general, but on the content.
Also the url still corresponds to the content of the current page.

Advertisement

Post Reply

Return to “Extensions for Joomla! 5.x”