Skip to content

Commit

Permalink
For XML, RSS, and JSON files, taxonomy index permalinks should not us…
Browse files Browse the repository at this point in the history
…e index.html
  • Loading branch information
simensen committed Dec 31, 2014
1 parent 48b5ae8 commit c82f2f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ProxySourceTaxonomyIndexGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public function generate(SourceInterface $source)

if (preg_match('/^(.+?)\.(.+)$/', $basename, $matches)) {
$urlTaxon = $this->permalinkStrategyCollection->process($taxon);
$permalink = $permalink.'/'.$urlTaxon.'/index.html';
$suffix = in_array($matches[2], array('xml', 'rss', 'json')) ? '.'.$matches[2] : '/index.html';
$permalink = $permalink.'/'.$urlTaxon.$suffix;
} else {
// not sure what case this is?
}
Expand Down

0 comments on commit c82f2f7

Please sign in to comment.