mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
LibWeb: Compare urls excluding fragments in Navigable::navigate()
This commit is contained in:
parent
fbc95440a4
commit
799b465fac
1 changed files with 1 additions and 1 deletions
|
@ -886,7 +886,7 @@ WebIDL::ExceptionOr<void> Navigable::navigate(
|
|||
// 1. If url equals navigable's active document's URL,
|
||||
// and initiatorOriginSnapshot is same origin with targetNavigable's active document's origin,
|
||||
// then set historyHandling to "replace".
|
||||
if (url == active_document.url() && initiator_origin_snapshot.is_same_origin(active_document.origin()))
|
||||
if (url.equals(active_document.url(), AK::URL::ExcludeFragment::Yes) && initiator_origin_snapshot.is_same_origin(active_document.origin()))
|
||||
history_handling = Bindings::NavigationHistoryBehavior::Replace;
|
||||
|
||||
// 2. Otherwise, set historyHandling to "push".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue