We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 223c0eb commit a92f351Copy full SHA for a92f351
1 file changed
src/Models/PostType.php
@@ -199,7 +199,13 @@ public function getFeatureCollectionName(string|PostTypeFeatures $feature): ?str
199
*/
200
public function getWebView(string $action = 'index'): string
201
{
202
- return 'web.post-type.' . $this->slug . '.' . $action;
+ $view = 'web.post-type.' . $this->slug . '.' . $action;
203
+
204
+ if (view()->exists($view)) {
205
+ return $view;
206
+ }
207
208
+ return 'web.post-type.default.' . $action;
209
}
210
211
/**
0 commit comments