Skip to content
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

SSG Doesn't Look for partials in the second site when using multisite #168

Open
JayGeorge opened this issue May 27, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@JayGeorge
Copy link

According to the docs multisite, "If a requested view exists in a subdirectory with the same name as your site handle, it will load it instead."

This works great but SSG seems to ignore it and instead looks in the first site directory.

e.g. I have a component here /resources/views/secondsite/partials/components/vidstack/core.antlers.html
This loads fine when I call it in Antlers like this: {{ partial:components/vidstack/core }} but when running php please ssg:generate I get the error

/second_domain (View [components.vidstack.core] not found.)

If I move this component to the main directory, e.g. /resources/views/partials/components/vidstack/core.antlers.html the error disappears when running php please ssg:generate

Support Details

Environment
Laravel Version: 10.48.11
PHP Version: 8.2.16
Composer Version: 2.7.6
Environment: local
Debug Mode: ENABLED
URL: site.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Livewire
Livewire: v3.5.0

Sentry
Enabled: MISSING DSN
Environment: local
Laravel SDK Version: 3.8.2
PHP SDK Version: 3.22.1
Release: NOT SET
Sample Rate Errors: 100%
Sample Rate Performance Monitoring: NOT SET
Sample Rate Profiling: NOT SET
Send Default PII: DISABLED

Statamic
Addons: 7
Sites: 2 (Site One, Site Two)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.5.0 PRO

Statamic Addons
aerni/advanced-seo: 2.5.1
jonassiewertsen/statamic-live-search: 2.1.1
jonassiewertsen/statamic-livewire: 3.3.1
rias/statamic-redirect: 3.7.1
statamic/collaboration: 1.0.0
statamic/ssg: 3.0.1
stefangalescu/statamic-heroicons: 3.0
@duncanmcclean duncanmcclean added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants