-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joomla 3.8 new routing system disaster #18818
Comments
Have you asked for help on the forums - Migrating and Upgrading to Joomla! 3.x? |
@franz-wohlkoenig they have simple solution on forums - just use other cms Joomla can't solve basic URL issue now Thats why it is now on github issues |
I asked cause after Release of 3.8 there where similar Reports depending most Time on Update from 3.6 (if i remember correct) and earlier and as you wrote "Update Joomla to 3.8.2". @wojsmol was one of the Guys here and in forums to help. |
@franz-wohlkoenig if you have working solution to Joomla 3.8 new routing system disaster please post it here. |
@wojsmol I enabled new routing system for com_contect The Home menu items give url /?view=article&id= instead of url with no id when the home is a featured view. I see @infograf768 gets similar issue with Joomla 4 #16691 Maybe we also need @Hackwar to step in, couse now when the home is a featured view Joomla 3.8 url is disaster. |
So you misconfigured your website and you are now asking for help. I am oh-so-glad to help you use our oh-so-broken CMS. A featured view can not create URLs to articles, since it just creates a sort of copy/"shortcut" from the actual location to the featured view, ("shortcut" in terms that it does not force you to copy the article into another article again, but not in the terms that it changes/shortens the URL) If Joomla can not create a right SEF URL with modern routing, it does not SEF the URL. So either change your featured view to a category view or create a menu item for the category of your articles. This is not a bug, but expected behavior. |
Maybe we need to document that better then or even add a postinstall notice for when there is only a feature menuitem? |
Documentation is not the solution and if it worked before then I stronlgy believe it should work now |
@Hackwar
Indeed: one MUST have at least a |
@Bakual @brianteeman @infograf768 |
That does not make sense, except if you totally take off from Joomla the |
And if the blog menu item takes into account the Featured status of articles.... |
It worked fine in that it created a nice looking URL. If it was broken or not doesn't matter in that regard. |
The new router is not good! See my problems at #16030. On my webpage Chem-Page.de: The only Quick fix is to use components/com_content from Joomla! 3.6.5! This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18818. |
The Joomla core components organise their content in a tree structure. (https://en.wikipedia.org/wiki/Tree_structure) A category can contain other categories and other articles, but no category can have more than one category as a parent and an article can not have more than one category assigned to it. That is also why we do not have multi-category in Joomla by default. Menu items form a similar tree and based on the type of menu item, the tree of menu items is extended with the sub-tree of the component that the menu item points to. So if you have a category menu item and that points to category1, which in return contains category1.1 and category1.2, then the menu item turns from a leaf into an internal node with category1.1 and category1.2 as new leafs (or internal nodes, depending on possible articles in those categories, etc.) A tree is a well defined structure and does not allow cross-shortcuts. What you guys are expecting with the featured view are exactly such shortcuts, which result in the tree being broken and undefined and in the end this results in the huge number of issues that we had in the routing. The featured article is nothing else than a favorites display of your articles. Think of a photo app. You organise your images into different albums and then mark some of them as your favorites. The favorites view of the app will then display those images in an overview, but the moment that you click on that image, you get into the album of the original image. It does not create a completely new album. |
@mseidl73 |
@Hackwar This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18818. |
All that said, the discussions are running around in circles for the last 8 years. Either you base your system on a sound theoretical and logical basis (like the modern routing tries to do) or you create a rather random system, where everyone comes up with his own ideas how it should work and which has loads of flaws. Since I'm fed up with such discussions, I'm stepping out of this one right here. |
@Hackwar after your teoretical new routing system has been introduced with Joomla! 3.8 it made real sites using featured menu disaster. So how can we fix this issue? What is a proper category and menu structure for Joomla 3.8 now? If disaster is Joomla 3,8 expected behavior it should be documented. @Bakual where can we read documentation on how to use featured menu as home page and not expierence Joomla 3.8 disaster? If featured menu is not posible anymore what we should use then ? |
@ozipom I think there is currently no documentation, that's why I said maybe we should add one. |
If we could break B/C on J3 for only Modern Routing, then we can stop adding Active Menu and Default Menu Item to every URL without own Itemid. Instead of I know that If we can not change it then IMHO this issue won't be fixed. |
I have tested 4.0.0 alpha 2. No Problems with router. |
OK, featured and archived articles have the same problem. And any view that is not directly related to content hierarchy will too. Featured is a state. Archived is a publication state. How can an archived view be the parent of a category or article when archived is not part of the content hierarchy? Same goes for featured. With the old routing system, the router would very weirdly use those non-hierarchical based views as parents and generate URLs. Sometimes questionable, but they would pass most user expectations of having a SEF URL versus the query string fragments they see now. The new routing system just doesn't do that. Rightfully so. There are ways to change things so you get semi-pretty URLs, but if you are relying on content being routed to with SEF URLs from a featured or archived view then you really need to have the menu tree set up appropriately. com_content is the only component with this issue in core IIRC, but the same logic applies to any component which builds views that are not based on the content hierarchy but based on content state. |
Com_contact -> featured as well. Just to a much lesser degree since it is likely only rarely used. |
Who understands this new Joomla 3.8 sef url and can write documentation? @Hackwar claims Joomla 3.8 website is misconfigured. If it so we need documentation, on how to setup main manu right way. Can @Hackwar step in and share with community the right configuration or there are others one who understands this new home is a featured view Joomla 3.8 url disaster. |
Basically what you need is a menuitem (starting point for the router) for the parent category. So either a "categories" or "category" type menuitem. That menuitem just has to exist. It doesn't have to be visible, you can also have it hidden. |
@Bakual what we need to choose as a starting point for the router to build the URLs using Joomla 3.8 that the protostar template displayed results of website would be simillar to protostar template Featured Articles then it was main menu? If Articles » List All Categories we make home page it shows only these categories, but how to display articles and pictures as it was with featured articles ? |
You can have your Featured view for home page. You have to add menu item (list or blog) for each root category or use menu item for all categories view. Example menu
Then for article from category "X" you should get link |
If this Issue get no Response, it will be closed at 26th January 2018. |
The issue will be fixed by #19280 |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18818 |
closed as having Pull Request #19280. |
Newly installed joomla have same problem, links to articles look like |
@geqo can you please open a new Issue? Comments on closed Issues didn't get much Notice. |
there is no bug, it is like this by design you will get such URLs if an appropriate menu item is not found for current view If you want prettier URLs, check that you have menu items linking to at least your top level categories, e.g. for guest users |
The reason why you see a query string like "/?view=article&id=" instead of a SEF URL is that you probably have no menu item assigned to the category yet. I explain this with an example. Problem
If I'm right so far, then follow the instruction below and let me know the result. Solution
Note: |
Hello, It's incredible how the Joomla community finds out strange solutions for simple things so that in the end, you have to try this, that, etc. and people tell you that it's YOUR fault, "wrong config", etc. Joomla will never be this "great CMS that everyone wants to use" due to such cases... all the time basic stuff that e.g. WP has out of the box, we need to have first of all awaited for years, then developed in a strange way the devs "think" it should be done and then, when you have a problem with a given solution, you are just scolded. EDIT: Read the "solution". |
If you don't like the menu-driven URLs of Joomla, then maybe just don't use Joomla - it may not be the best solution for you. |
Wow, an awesome piece of advice... a basic thing Joomla should have - it doesn't have it? Don't use it. Wow. And then you are wondering why Joomla is deteriorating... |
Steps to reproduce the issue
Update Joomla to 3.8.2
Click on the title of an article displayed in a featured menu item.
Expected result
New router with no id url
Actual result
url ads /?view=article&id=
System information (as much as possible)
PHP 7
Joomla 3.8.2
Additional comments
If Joomla can't solve basic URL issue maybe we should use other cms ?
The text was updated successfully, but these errors were encountered: