@@ -43,13 +43,6 @@ function getSlugs(pathname: string) {
4343 const subdomainInfo = getSubdomainInfo ( ) ;
4444 let festivalSlug = subdomainInfo . festivalSlug || "" ;
4545
46- console . log ( "🔍 FestivalEditionContext getSlugs debug:" , {
47- pathname,
48- festivalSlug : subdomainInfo . festivalSlug ,
49- isSubdomain : subdomainInfo . isSubdomain ,
50- isMainDomain : subdomainInfo . isMainDomain ,
51- } ) ;
52-
5346 let basePath = "" ;
5447 // For main domain, extract festival slug from URL path
5548 if ( pathname . includes ( "/festivals/" ) ) {
@@ -60,7 +53,6 @@ function getSlugs(pathname: string) {
6053 }
6154
6255 if ( ! pathname . includes ( "/editions" ) ) {
63- console . log ( "🔍 No editions in pathname, returning:" , { festivalSlug } ) ;
6456 return {
6557 festivalSlug,
6658 basePath,
@@ -75,10 +67,6 @@ function getSlugs(pathname: string) {
7567 if ( matchWithSlash ) {
7668 const editionSlug = matchWithSlash ?. params . editionSlug || "" ;
7769
78- console . log ( "🔍 Found editions in pathname with slash, returning:" , {
79- festivalSlug,
80- editionSlug,
81- } ) ;
8270 return {
8371 basePath : basePath + `/editions/${ editionSlug } ` ,
8472 festivalSlug,
@@ -92,12 +80,6 @@ function getSlugs(pathname: string) {
9280
9381 const editionSlug = matchWithoutSlash ?. params . editionSlug || "" ;
9482
95- console . log ( "🔍 Found editions in pathname without slash, returning:" , {
96- festivalSlug,
97- editionSlug,
98- matchWithoutSlash,
99- pathname,
100- } ) ;
10183 return {
10284 basePath : basePath + `/editions/${ editionSlug } ` ,
10385 festivalSlug,
0 commit comments