Hot answers tagged

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 ...
Sharky's user avatar
  • 10.9k
5 votes

Get the current Joomla URL

UPDATE: JUri is now also deprecated. The correct way now is as follows: $uri = \Joomla\CMS\Uri\Uri::getInstance(); echo $uri->toString(); (Edited to include an initial backslash - required if ...
Søren Beck Jensen's user avatar
4 votes

Joomla turns all menu items to sub-sub-menu items when adding a new one

The issue was down to a problem with a PDO database file MySQL driver, which is why it wasn't replicated on my other 3.5.0 site, which was using MySql. There is a fix here, or it should be patched in ...
RichardB's user avatar
  • 3,072
4 votes
Accepted

Multilingual Joomla site with multiple domains

There is a nice free plugin Language Domains from Yireo, which allows you to switch the domain-name as soon as a specific language is selected. Each domain is bound to a language, by configuring ...
Mikan's user avatar
  • 3,007
4 votes
Accepted

How can I use 'SEO and Link Tools' in 'Admin Tools' in my situation?

In AdminTools set "Enable Link Migration" to Yes and then enter the old host name ie. example.com (don't include http:// at the front) However this will not solve your problem. The fastest way is ...
garth's user avatar
  • 320
4 votes
Accepted

How do I turn off Joomla inserting a BASE tag into the HTML?

I found this answer, but I don't think it's permanent. https://forum.joomla.org/viewtopic.php?t=354052#p2725317 To remove the base tag in the header simply add this to your template file (index.php) $...
Chloe's user avatar
  • 293
3 votes

How Can I Get Rid Of Category Pages in Joomla

This post highlights a common problem with Joomla and other CMSes. Without the correct setup many different URLs can be indexed for the same page. Joomla applies an ID for each category and each item....
garth's user avatar
  • 320
3 votes

Having absolute SEF links in Joomla

Make sure the System - SEF plugin is published. This plugin contains the following code, which should be adding the correct URL path to images before the page is rendered: // Replace src links. $...
RichardB's user avatar
  • 3,072
3 votes
Accepted

Menu item adding 'Clients/' to url

I had the same issue with the menu then I found this. https://forum.joomla.org/viewtopic.php?f=615&t=772029 It was helpful but not the solution. Then I checked my #__menu table and there I ...
Joomler's user avatar
  • 1,801
3 votes
Accepted

How can I make a directory accessible without putting it on a menu?

Obfuscated File Name You can upload a file to the website e.g. at website.com/obfuscatedfilename.pdf and then notify users of the file location via email. Users can then download the file by ...
Neil Robertson's user avatar
3 votes
Accepted

Automatic url linking

In TinyMCE (the default editor) and also JCE Editor and probably most editors, a pasted url is automatically changed to a hyperlink if you press the space bar or the return key immediately after the ...
Neil Robertson's user avatar
3 votes

How to remove menu parent from url?

A "clean" way of addressing this problem from within the Joomla is to create the child menu item in a hidden menu, and then reference (in the real menu) the child menu item using a menu item of type "...
itoctopus's user avatar
  • 3,216
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')
Sharky's user avatar
  • 10.9k
3 votes
Accepted

How does JFactory::getApplication->input get the input id

If I understand it right. You wan't to get the ID of the current active menu. Theres a great example on this forum: https://forum.joomla.org/viewtopic.php?t=642224 Here's the code part: // get ...
Jonas Borneland's user avatar
3 votes
Accepted

Site keeps browsing itself all the time

I do not see this as a Joomla issue (except the .htaccess file in Joomla root). From the small part of the log you provided in your question we can clearly read that the requests are made by ...
Zollie's user avatar
  • 2,896
3 votes

Link to Page & Pre-Filter Portfolio Items

By "anchor and jquery" you mean like the way bootstrap tabs work - ie. by letting the uri's fragment hit the id of the tab. But these tabs aren't set up like that. You can of course use jquery to ...
jamesgarrett's user avatar
  • 3,299
3 votes
Accepted

Link to Page & Pre-Filter Portfolio Items

I found the answer, thanks for the help @jamesgarrett The tabs were using shuffle.js so I needed to edit the page builder js file. jQuery(function($) { var $container = $('.sp-simpleportfolio-...
jonboy's user avatar
  • 3,593
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\...
Sharky's user avatar
  • 10.9k
2 votes

SH404SEF : How to redirect a URL to home?

sh404SEF developer here The answer by FFrewin above is not correct. To redirect some URLs to home page, you simply: Click on the "Home page meta" toolbar button on any page of sh404SEF control panel ...
Weeblr's user avatar
  • 51
2 votes

Back end login inaccessible

Think of what has changed since it last worked.. Did you update Joomla? Did your host upgrade the php version on the server? This may be the case and if you go in and delete an ampersand at line 106 ...
omni's user avatar
  • 101
2 votes
Accepted

How can I make all pages urls of my joomla 3 web site have the .html extension?

Here is how to show it: For adding the document extension type in your URLs, you need to go in: -> Global Configuration -> Site -> enable the "Add Suffix to URL" setting, at the SEO Settings ...
FFrewin's user avatar
  • 19.6k
2 votes

Joomla 3.0 direct link to file with multi language

Not sure of your configuration for multi-language but I suspect the /en/ is coming from the language plugin config. As a workaround, you could create a new "hidden" menu item for an external location ...
BodgeIT's user avatar
  • 677
2 votes

How to change URL's for each page in joomla 3.4?

Joomla SEF URLs - the background I will try to give briefly some background info. The common way for displaying content/pages in Joomla, is to create it inside Components.. Components provide menu ...
FFrewin's user avatar
  • 19.6k
2 votes
Accepted

Anchor link in template breaks when page has URL parameters

Another idea would be to provide the right URL for the anchor. In your template you can do something like this: <a href="<?php echo JUri::getInstance(); ?>#top">Go to top</a> This ...
fruppel's user avatar
  • 3,723
2 votes

Multilingual Joomla site with multiple domains

Try adding the following to your .htaccess file. RewriteEngine on RewriteRule ^se(.*)$ http://www.mydomain.se$1 [R=301,L] RewriteRule ^dk(.*)$ http://www.mydomain.dk$1 [R=301,L] If you only have a ...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

Joomla turns all menu items to sub-sub-menu items when adding a new one

I would suggest you to verify Assets Table, because many times that have fixed mysterous problems for me in the past. But unfortunately, there is no free tool for that. The best assests and ...
Mikan's user avatar
  • 3,007
2 votes
Accepted

Absolute SEF url with JRoute

You could try this way: $itemid = 164; $application = JFactory::getApplication(); $menu = $application->getMenu(); $item = $menu->getItem( $itemid ); $link = new JURI( $item->link ); $link-&...
FFrewin's user avatar
  • 19.6k
2 votes

Having absolute SEF links in Joomla

If your image appears in HTML body like that <img src="images/image.png"> at front-end then keep in mind that URL are related to your base url, wich is added as base meta tag in your page &...
Alexandr's user avatar
  • 1,130
2 votes

Coding a non SEF url

Any url in joomla which is not using JRoute method is non SEF url. For eg. http://www.example.com/index.php?option=com_yourcomponent&view=article&id=1&catid=20&Itemid=4 Also if ...
Joomler's user avatar
  • 1,801
2 votes
Accepted

Home page layout is used for content instead of the default layout

Having articles that are accessible like this: /component/content/article/(###-categoryname)/(###-articlename) Means you haven't created the appropriate menu structure to encompass content in these ...
BodgeIT's user avatar
  • 677

Only top scored, non community-wiki answers of a minimum length are eligible