Why Joomla query variables disappear when routed

April 01, 2009

Reading time ~1 minute

Empty query variables will not be included in a routed link. Take the following example:

<a href="<?php echo JRoute::_("&foo=bar&limitstart=");?>">
    <?php echo JText::_('Start');?></a>

This link will actually exclude the empty limitstart variable from the link. The resulting link will look similar to:

index.php?foo=bar

whereas you might have expected it to look like:

index.php?foo=bar&limitstart=

Another reason the variable may disappear unexpectedly is if the variable is manually unset (removed) in the component router.

Advanced Test Driven Development for Node - Part 1

Part 1 of my attempt to port Robert C. Martin's talk '8LU:Advanced Concepts in TDD' to Node. Continue reading

Semantic versioning for retail software

Published on December 11, 2014

Better Grunt files (for organised developers)

Published on December 02, 2014