[wp-trac] [WordPress Trac] #31758: hashtag stripped out of wp-admin backend Dashboard URL's
WordPress Trac
noreply at wordpress.org
Fri Mar 27 20:06:00 UTC 2015
#31758: hashtag stripped out of wp-admin backend Dashboard URL's
----------------------------+---------------------
Reporter: AITpro | Owner: dd32
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Administration | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses:
----------------------------+---------------------
Comment (by AITpro):
hmm maybe this is the better approach. Looking around I get the overall
feeling that pushState() is better/superior to use/more advantageous vs
replaceState() and + location.hash would not be necessary.
https://developer.mozilla.org/en-
US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history#The_pushState()_method
{{{
if ( window.history.pushState ) {
window.history.pushState( null, null, document.getElementById( 'wp-admin-
canonical' ).href );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31758#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list