-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pattern Links in "view all" ignore configured outputFilePaths #437
Comments
I am now seeing this only under each folder, individual view all are working. So for example
|
@mbulfair, that's actually a different issue. Mine is that these links don't work: |
@geoffp I think what you propose is a good way to address this issue going forward, versus what I've been attempting to do (monkey-patch replace when issues crop up with suffixes) |
@mbulfair FWIW this is all working for me right now on |
Or, is this only an issue when you deviate from the default |
Oh, I see what you are experiencing now after I configure an outputFileSuffix. I tried monkey-patching
|
Yep, you've got it :) |
I am using Pattern Lab Node
v2.4.2
onMac
, with Nodev4.4.7
, using theGulp
Edition.Expected Behavior
When using the following config, which supports the use of Underscore templates:
The pattern links in "View All" should end in "-rendered.html".
Actual Behavior
They end in ".html", and in this configuration, that gets you the rawTemplate version and breaks navigation due to the absence of essential scripts on the page in the iframe.
This appears to be due to widespread use of the precomputed patternLink value on Pattern objects. I propose to eliminate this field and replace it with a getPatternLink() method that takes the patternlab object as an argument so it can calculate the correct value on the fly based on the user's config.
The text was updated successfully, but these errors were encountered: