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

Issue with link variable for multi-site setup #128

@epsilon-skolanthasamy

Description

@epsilon-skolanthasamy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions