Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The uniform resource locator, abbreviated as URL is a specific character string that constitutes a reference to a resource.
1
vote
Accepted
How to reference a file locally within my class
Don't use JUri for fetching local files. It returns the web address of your site. Fetching files over HTTP is extremely slow compared to fetching files locally. Use one of JPATH constants to get a loc …
6
votes
Accepted
Why are Joomla url query strings commonly delimited with "&" instead of "&"?
It is to do with with HTML/XHTML compatibility. Before HTML5 having unencoded ampersands in URLs and in some other contexts was invalid. From XHTML validator:
Entity references start with an amper …
3
votes
Accepted
How to get URL parameter via Joomla api with decoded strings?
Use string filter instead of the default cmd filter:
JFactory::getApplication()->input->get('myParam', '', 'string')
Or:
JFactory::getApplication()->input->getString('myParam')
1
vote
Does JRoute by default finds path to menu link (SEF)
JRoute::_() doesn't find anything. It just turns non-SEF links into SEF. How that is done depends on your component's router. Unless your component implements modern routing (introduced in 3.7, I thin …
1
vote
Accepted
Alias and title in article url
from non-SEF URL. … If a segment is remanining, Joomla considers this to be an invalid URL and throws a 404. …
2
votes
Component middleware for handling URLs
If your component uses Joomla's core MVC, add the code to your display controller's display() method:
namespace [Vendor]\Component\[Component]\[Application]\Controller;
use Joomla\CMS\MVC\Controller\ …
0
votes
Accepted
Joomla SEF url in CLI script
$url = $router->build(ContentHelperRoute::getCategoryRoute('10'));
return $url->toString();
}
i have also tried
JRoute::_(ContentHelperRoute::getCategoryRoute('10'));
It just …
1
vote
How to catch Joomla\CMS\Router\Exception\RouteNotFoundException in Joomla 4.1?
In J4 exceptions can be handled by system plugins with onError event:
use Joomla\CMS\Event\ErrorEvent;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Router\Exception\RouteNotFoundException;
class P …
3
votes
Accepted
Joomla correct way of routing
You should run the URL through Joomla\CMS\Router\Route::_() before passing to setRedirect() to get the correct SEF URL since none of the involved methods do that automatically.
use Joomla\CMS\Router\Route …
0
votes
How to set up new menu as my homepage?
Home/default menu item can be set by clicking Set as Home button in menu item list or checking Default Page field in menu item form. But this will not solve your problem. 404 pages resolve to the defa …
0
votes
Joomla 3.x routing and slug problem
What you're trying to do is not usual in Joomla and is not recommended. Joomla simply doesn't work that way. The URLs are first defined by menu item structure and only then by individual component rou …