hyTags
HomeHome DocumentationDocumentation

page-push-state

Pushes a new entry to the browser history without reloading the page
Parameter
Type
Description
state
Object
The state object to associate with the history entry
url
Url
The URL to push to the browser history
return
void
No return value
Test Case:Push state updates URL
    <div></div>
    
    <url-new schema="https" host="localhost" path="/new-path">
    <object-new>
    <page-push-state>
    <page-get-url>
    <url-get-path>
    <assert-equal value="/new-path" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed