edition-node-gulp icon indicating copy to clipboard operation
edition-node-gulp copied to clipboard

Issue with link variable for multi-site setup

Open epsilon-skolanthasamy opened this issue 5 years ago • 0 comments

I am using Pattern Lab Node gulp edition on Windows

I am using a link variable to attach links to pages inside my patternlab. It works fine with one patternlab instance.

I am using multi client setup which has master-starterkit and brand- folders.

Each brand folder initially will be loaded with master files and patterns.

When I run the serve inside the brand folders, I can preview the pages.

Here I linked the pages using {{link.pages-homepage}} , this works fine in local but when I move to serve it doesn't work.

Here is the path, Local - localhost/public/patterns/pages-homepage/pages-homepage.html Server - http://example.com/patterns/pages-homepage/pages-homepage.html

But the server should be: http://example.com/**[brand-folder]/public/**patterns/pages-homepage/pages-homepage.html

How do I change the path which is defined to "link" variable to work for local and server as well.

Note: I saw some comments about DataLinkExport which is in PHP. I am using node gulp edition.

epsilon-skolanthasamy avatar Apr 04 '19 07:04 epsilon-skolanthasamy