Skip to content

Update page url when hash changes#1105

Open
duonglaiquang wants to merge 2 commits intoHtmlUnit:masterfrom
duonglaiquang:duong_location
Open

Update page url when hash changes#1105
duonglaiquang wants to merge 2 commits intoHtmlUnit:masterfrom
duonglaiquang:duong_location

Conversation

@duonglaiquang
Copy link
Contributor

This PR does the following

  • Fix Location.setHash() to update the page's WebRequest URL when the hash changes, ensuring page.getUrl() reflects the current hash

  • Fix WebClient.makeWebResponseForAboutUrl() to properly handle about:blank with hash fragments (e.g., about:blank#foo) instead of throwing MalformedURLException

@sonarqubecloud
Copy link

@rbri
Copy link
Member

rbri commented Mar 16, 2026

@duonglaiquang this requires some time because i have some memories that i had hard times with this. Will have a look at this during the next days...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants