We're also available for Custom Joomla Development

Hire us now

Latest news. show wrong url - creating a subfolder

Great module but I have a problem with setting.
At the beginning I had a problem with thumbnail. In articles I have codes so do not load images for news thumbnail.
To solve the problem I added in the options add thumbnails to article. The case was resolved but temporarily.

I saw the last news changed address, by creating another subfolder + ID Article.
Joomla address link everything is okay.
But Last news link address is different and shows in the article photo. I want that picture is not visible.

I skipping that is a different address, did not bother me too much. Only image that shown in the article.

I checked not all addresses are changing.

http://cryptophysical.com/index.php/coins/satori-coin correct address in joomla menu
http://cryptophysical.com/index.php/coins/satori-coin/172-satori-coin address from Last news (172- ID article )

during writing I found a solution!!!!:D
remove ID from URL in Joomla

1. go to server FTP, Joomla! 2.5 lub 3.x.
2. go to folder: components/com_content/router.php.
3. copy router.php to PC
4.Edit router.php

linii 27 code:
$advanced = $params->get('sef_advanced_link', 0);

change to:

$advanced = $params->get('sef_advanced_link', 1);

around the line260:
$advanced = $params->get('sef_advanced_link', 0);

change to:

$advanced = $params->get('sef_advanced_link', 1);

around the line 282:
if (strpos($segments[0], ':') === false) {
$vars['view'] = 'article';
$vars['id'] = (int)$segments[0];
return $vars;

change to:

if (strpos($segments[0], ':') === false) {
$vars['view'] = 'article';
$vars['id'] = (int)$segments[0];
return $vars;<b></b>

this is for Joomla! 2.5.

In Joomla! 3x z linii :

around the line 386:
->where($db->quoteName('alias') . ' = ' . $db->quote($db->quote($segment)));

change to:
->where($db->quoteName('alias') . ' = ' . $db->quote($segment));

Copy file back to the server: components/com_content/router.php.
    Replied by admin on Friday, April 29 2016, 04:47 AM · Hide· #1
    Hi thank you for the workaround and glad it's working for you, however editing the core file is not recomended because it will be overrided everytime you are updating the joomla
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments