Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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
  • 11.4k
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
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

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,082
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
  • 303
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,082
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,811
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,226
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
  • 11.4k
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,936
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,603
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
  • 11.4k
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

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.7k
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

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

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,811
2 votes

Joomla 3 and Google Security Issues - Security Issues

Redirecting the links is probably a short term solution at best. Ideally you need to find and fix the hacker's point of entry (e.g. update Joomla and all third party extensions to the latest versions)...
Neil Robertson's user avatar
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
2 votes

Store data from URL in Joomla website database

You can get the value of a URL parameter with: $value = JFactory::getApplication()->input->get('parameter'); Then you can use JDatabaseQuery to insert data into the database. https://docs....
FFrewin's user avatar
  • 19.7k
2 votes

Is it safe to use `Use URL Rewriting` option?

When SEF is enabled on a Joomla website, the old non-sef urls still work normally so search engines will still be able to find the pages whether they use the SEF or non-SEF url. These days, Google ...
Neil Robertson's user avatar
2 votes

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

If you're using Apache, you can also make a directory indexable by editing the .htaccess file in that directory. Just make a file in your directory called .htaccess. The file should contain the ...
Dan's user avatar
  • 341
2 votes
Accepted

How can I redirect a URL to another domain?

You could unpublish /short so that it 404s, and then use the redirects manager. (Components > Redirects). Details : https://docs.joomla.org/Help37:Components_Redirect_Manager
RichardB's user avatar
  • 3,082
2 votes

How to make Category Links noindex

You can walk through all categories, and in the Publishing tab, set the Robots option to No Index.
n.h.'s user avatar
  • 871

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