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:21 UTC

(wicket) branch fix-top-level-navigation created (now fcdc54e59e)

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

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


      at fcdc54e59e Fix condition for simple top level navigation

This branch includes the following new commits:

     new fcdc54e59e Fix condition for simple top level navigation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by pa...@apache.org.
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;