File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ var pattern_assembler = function () {
91
91
function addPattern ( pattern , patternlab ) {
92
92
93
93
//add the link to the global object
94
- patternlab . data . link [ pattern . patternGroup + '-' + pattern . patternBaseName ] = '/patterns/' + pattern . patternLink ;
94
+ patternlab . data . link [ pattern . patternPartial ] = '/patterns/' + pattern . patternLink ;
95
95
96
96
//only push to array if the array doesn't contain this pattern
97
97
var isNew = true ;
@@ -419,6 +419,7 @@ var pattern_assembler = function () {
419
419
for ( var i = 0 ; i < linkMatches . length ; i ++ ) {
420
420
expandedLink = patternlab . data . link [ linkMatches [ i ] . split ( '.' ) [ 1 ] ] ;
421
421
if ( expandedLink ) {
422
+ expandedLink = expandedLink . replace ( '\\' , '/' ) ;
422
423
if ( patternlab . config . debug ) {
423
424
console . log ( 'expanded data link from ' + linkMatches [ i ] + ' to ' + expandedLink + ' inside ' + key ) ;
424
425
}
You can’t perform that action at this time.
0 commit comments