Skip to main content

Questions tagged [router]

The router creates and interprets nice Search Engine Friendly URLs

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

I have a really weird issue that I haven't seen before. Obviously I am blaming the client. On this page: https://tekexpress.co.uk/news?start=12 all of the articles click through. But the "7 ...
Eoin's user avatar
  • 2,091
0 votes
1 answer
202 views

I am in the process of migrating a large Joomla component from v3.x (with lots of legacy code from 1.5+!) to Joomla 5 at present. One item I have stumbled upon is how best to bootstrap the component's ...
John Rix's user avatar
  • 595
1 vote
0 answers
136 views

In Joomla 3 it was possible to use an URL of this form example.com/Essays/somethin-else because the router would match 'Essays' to the alias of an existing menu item (eg. 'essays, content, single ...
user1104799's user avatar
1 vote
0 answers
178 views

I am using Joomla 4. I have a requirement to rewrite certain URLs to a specific article (article with ID 32). This worked OK with Joomla 3 but now I am getting unexplained error 404 using the same ....
user1104799's user avatar
0 votes
1 answer
396 views

I'm converting a custom component from Joomla 3, where the component was using the legacy router, to Joomla 4 router. I have the router service set up and working on Joomla 4.4.0. I first tried ...
James Wadsworth's user avatar
0 votes
1 answer
87 views

I've added Router Features today to my Custom Component - all works finde beside the fact that the $pk variable inside the model holds a curios value (202n) where 'n' is different for each element... ...
Marco's user avatar
  • 705
0 votes
1 answer
544 views

I have a menu entry like so: ID: 524 Type: Articles->Create Article Link: index.php?option=com_content&view=form&layout=edit In the "old days" I'do Route::_('index.php?option=...
Alexandre Paulo's user avatar
0 votes
1 answer
200 views

For a Joomla 4 component I just cannot figure out how to successfully forward or call a Controller function from within a custom Router. This is the Controller - it basically loads an image: <?php ...
cappu's user avatar
  • 169
0 votes
1 answer
152 views

Below is the have written the code router file in the component namespace Test\Component\Test\Site\Service; // No direct access defined('_JEXEC') or die; use Joomla\CMS\Component\Router\...
user4571727's user avatar
0 votes
1 answer
96 views

I think this could be a bit complicated. I have a non namespaced Joomla 4 component, but i need to have an API access for specific data. So i created a /src directory in Backend with all needed ...
maidan's user avatar
  • 463
1 vote
1 answer
337 views

I am using this on a custom component: $url = index.php?option=com_content&view=article&catid=427&id=15106 Both echo $url; echo Route::_($url); will output a friendly url. I'm guessing ...
Alexandre Paulo's user avatar
1 vote
0 answers
63 views

i need have multiple parents for a view, for example: view products list of all products with links to single product view categories list of all categoires with links to single category View ...
Francesco Reitano's user avatar
0 votes
0 answers
116 views

My current working url is example.com/order/?id=abcd&pass=1234 I want url like example.com/order/abcd?pass=1234 After applying below codes in ROOT/components/com_shop/src/Service/Router.php public ...
Russell's user avatar
  • 13
2 votes
1 answer
820 views

Context: I have a component that works fine in J3 and I want to migrate it to J4. Problem: When I create a menu (Joomla main menu) on the frontend view of the component, in J4 only, the URL is not SEF ...
Yann's user avatar
  • 41
2 votes
1 answer
308 views

I have 1 component with 2 views - default is view1 - secondary is view2. When I associate it with the menu from the backend, Joomla creates the correct url with alias for SEO. Example: www.sitename....
Orazio D'Arrigo's user avatar

15 30 50 per page