diff --git a/src/PatternLab/PatternData/Helpers/LineageHelper.php b/src/PatternLab/PatternData/Helpers/LineageHelper.php index 9f9a5648..cd8cb703 100644 --- a/src/PatternLab/PatternData/Helpers/LineageHelper.php +++ b/src/PatternLab/PatternData/Helpers/LineageHelper.php @@ -53,9 +53,10 @@ public function run() { foreach ($foundLineages as $lineage) { if (PatternData::getOption($lineage)) { - - $patternLineages[] = array("lineagePattern" => $lineage, - "lineagePath" => "../../patterns/".$patternStoreData["pathDash"]."/".$patternStoreData["pathDash"].".html"); + + $path = PatternData::getPatternOption($lineage, "pathDash"); + $patternLineages[] = array("lineagePattern" => $lineage, + "lineagePath" => "../../patterns/".$path."/".$path.".html"); } else {