You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pa...@apache.org on 2024/02/25 20:09:22 UTC

(wicket) 01/01: Fix condition for simple top level navigation

This is an automated email from the ASF dual-hosted git repository.

papegaaij pushed a commit to branch fix-top-level-navigation
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit fcdc54e59eaf925bd5a3a04296463cb0a28e172b
Author: Emond Papegaaij <pa...@apache.org>
AuthorDate: Sun Feb 25 21:06:10 2024 +0100

    Fix condition for simple top level navigation
---
 .../wicket/protocol/http/FetchMetadataResourceIsolationPolicy.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/FetchMetadataResourceIsolationPolicy.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/FetchMetadataResourceIsolationPolicy.java
index ee6d190aaf..b268847893 100644
--- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/FetchMetadataResourceIsolationPolicy.java
+++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/FetchMetadataResourceIsolationPolicy.java
@@ -83,7 +83,7 @@ public class FetchMetadataResourceIsolationPolicy implements IResourceIsolationP
 		String dest = request.getHeader(SEC_FETCH_DEST_HEADER);
 
 		boolean isSimpleTopLevelNavigation = MODE_NAVIGATE.equals(mode)
-			|| "GET".equals(request.getMethod());
+			&& "GET".equals(request.getMethod());
 		boolean isNotObjectOrEmbedRequest = !DEST_EMBED.equals(dest) && !DEST_OBJECT.equals(dest);
 
 		return isSimpleTopLevelNavigation && isNotObjectOrEmbedRequest;