User tests: Successful: Unsuccessful:
This PR normalizes this view by adding the ordering to the searchtools in com_finder filters view.
Also:
Status | New | ⇒ | Pending |
Labels |
Added:
?
?
|
Generating front-end SEF URLs for display in the admin involves some trickery. You can't use JRoute::_()
to do it because of the coupling to JFactory::getApplication()
. This method will do the trick if you really wanted to show SEF URLs:
/**
* Replacement for JRoute::_() for routing from Joomla's backend
*
* @param string $url The URL to process
*
* @return string The routed URL
*/
public static function getFrontendRoute($url)
{
// Get the router.
$router = JApplicationCms::getInstance('site')->getRouter();
// Make sure that we have our router
if (!$router)
{
return null;
}
if ((strpos($url, '&') !== 0) && (strpos($url, 'index.php') !== 0))
{
return $url;
}
// Build route.
$uri = $router->build($url);
$url = $uri->toString(['path', 'query', 'fragment']);
// Replace spaces.
$url = preg_replace('/\s/u', '%20', $url);
// Replace '/administrator'
$url = str_replace('/administrator', '', $url);
$url = htmlspecialchars($url);
return $url;
}
@mbabker yeah i notice that.
Could the php 5.3 version of that method be in https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/router/administrator.php?
Category | ⇒ | Components Language & Strings UI/UX |
Labels |
Labels |
Presumably there was a specific reason for the full non-sef url being presented @chrisdavenport
Both SEF and non-SEF URLs would be useful during debugging. Since this component originates from something that was originally written for Joomla 1.5, I suspect that the non-SEF link was shown mainly because the SEF link was hard to reliably generate.
@andrepereiradasilva While you're messing with this component, there is a small issue that I noticed a while back that you can probably fix at the same time:
If you use Search Tools to make some selection which results in an empty list, you will see this message: "No content has been indexed. Start the indexer by pressing the Index button in the toolbar." which is actually wrong in that context.
Could the php 5.3 version of that method be in https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/router/administrator.php?
I'd throw it in JRoute
instead of JRouterAdministrator
personally. I'd also battle test it a bit harder than I did with my hack (if you ever get a frontend path with /administrator
in it that'll get string replaced and it doesn't cope with the HTTP(S) detection like JRoute::_()
does. Otherwise, it's GPL code ripped off from a GPL project, do as you please
@chrisdavenport, i solved that now. this is how it looks after the latest commit
Without index
With index
@mbabker thanks, i will check that later
I have tested this item successfully on f56c2d6
I have tested this item successfully on f56c2d6
Status | Pending | ⇒ | Ready to Commit |
Labels |
Labels |
Added:
?
|
Milestone |
Added: |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-23 12:35:14 |
Closed_By | ⇒ | rdeutz |
Milestone |
Removed: |
Milestone |
Added: |
Milestone |
Added: |
Milestone |
Removed: |
Labels |
Removed:
?
|
Presumably there was a specific reason for the full non-sef url being presented @chrisdavenport