Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Issue with link variable for multi-site setup #128

Open
epsilon-skolanthasamy opened this issue Apr 4, 2019 · 0 comments
Open

Issue with link variable for multi-site setup #128

epsilon-skolanthasamy opened this issue Apr 4, 2019 · 0 comments

Comments

@epsilon-skolanthasamy
Copy link

epsilon-skolanthasamy commented Apr 4, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant