Skip to content

Commit 4d60258

Browse files
Boost: Fix Cornerstone Pages validation for URLs with GET parameters (#45101)
1 parent 5194408 commit 4d60258

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

projects/plugins/boost/app/assets/src/js/features/cornerstone-pages/meta/meta.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ const List: FC< ListProps > = ( {
444444
);
445445
}
446446

447-
// Fixed multisite homepage detection
447+
// Only consider it homepage if it has no query parameters
448448
const resolvedPath = getResolvedPath( pathname, siteUrl );
449-
if ( resolvedPath === siteUrl.pathname ) {
449+
if ( resolvedPath === siteUrl.pathname && ! url?.search ) {
450450
throw new Error(
451451
__(
452452
'The homepage does not need to be added to the list, as it is automatically included.',
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Cornerstone Pages: Fix validation error preventing URLs with GET parameters from being added to the cornerstone pages list.

0 commit comments

Comments
 (0)