If my search contains special chars like ü
, ä
they are encoded to %C3%BC
for example.
The strange thing is, it does work correctly in one template, but not in another one.
Template 1: simple links ... works without encoding
<?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
<a href="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> class="active"<?php endif; ?>><span><span><?php echo $_limit ?></span></span></a>
<?php endforeach; ?>
Template 2: dropdown ... values are encoded
<select class="select--wd select--wd--sm" onchange="setLocation(this.value)">
<?php foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
<option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif; ?>>
<?php echo $_limit ?>
</option>
<?php endforeach; ?>
</select>
- toolbar block is not rewritten, it's still
Mage_Catalog_Block_Product_List_Toolbar
. - it's the same server, just another website with another template
I've solved this with using urldecode()
, but i still want to know where the different behavoir comes from.
urldecode
works ... ?!?