File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Umbraco.Web.UI.Client/src/packages/core/collection Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export class UmbCollectionViewManager extends UmbControllerBase {
80
80
if ( views && views . length > 0 ) {
81
81
// find the default view from the config. If it doesn't exist, use the first view
82
82
const defaultView = views . find ( ( view ) => view . alias === this . #defaultViewAlias) ;
83
- const fallbackView = defaultView ?. meta . pathName || views [ 0 ] . meta . pathName ;
83
+ const fallbackView = defaultView ?? views [ 0 ] ;
84
84
85
85
routes = views . map ( ( view ) => {
86
86
return {
@@ -95,7 +95,10 @@ export class UmbCollectionViewManager extends UmbControllerBase {
95
95
if ( routes . length > 0 ) {
96
96
routes . push ( {
97
97
path : '' ,
98
- redirectTo : fallbackView ,
98
+ component : ( ) => createExtensionElement ( fallbackView ) ,
99
+ setup : ( ) => {
100
+ this . setCurrentView ( fallbackView ) ;
101
+ } ,
99
102
} ) ;
100
103
}
101
104
You can’t perform that action at this time.
0 commit comments