Skip to content

Corrected the preview template path #53

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JalenWasHere
Copy link

The init command uses the bundles path without the @ prefix which is incorrect and can be very confusing.

@JalenWasHere
Copy link
Author

JalenWasHere commented Mar 20, 2025

It seems like the @ prefix is actually the correct incorrect way.

But then this part of the docs is incorrect?

http://github.com/sensiolabs/StorybookBundle/blame/main/docs/configuration.md#L67

@jon-ht
Copy link

jon-ht commented Mar 26, 2025

@ should not be part of the path when overriding bundle's template

https://symfony.com/doc/current/bundles/override.html#override-templates

Third-party bundle templates can be overridden in the <your-project>/templates/bundles/<bundle-name>/ directory. The new templates must use the same name and path (relative to <bundle>/templates/) as the original templates.

For example, to override the templates/registration/confirmed.html.twig template from the AcmeUserBundle, create this template: <your-project>/templates/bundles/AcmeUserBundle/registration/confirmed.html.twig

@JalenWasHere JalenWasHere force-pushed the JalenWasHere-patch-1 branch from 2ef11c8 to ec660d4 Compare March 31, 2025 08:01
@JalenWasHere
Copy link
Author

@jon-ht Thank you for clarifying. In that case I have corrected the docs which did include the @.

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

Successfully merging this pull request may close these issues.

2 participants