id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc 4701,Streamline access to the changelog content of plugin pages,netpassprodsr,SergeyBiryukov,"== The quick: The following snippet of code is in the wrong place. It should ideally be ''the final element'' just before the closing `
` tag on the page, not above the content it references. `` (this snippet immediately precedes the following group of tags, and because of which it does not produce the desired result:) {{{ }}} == The details: The WP Toolkit for Plesk presents links to the plugin pages of those with an updated version available. The link has a reference to changelog, as in this '''example''': https://wordpress.org/plugins/akismet/changelog/ An automatic reformat of the URL occurs resulting in this link: https://wordpress.org/plugins/akismet/#changelog Prior to mid-July 2019, the behavior of the WordPress.org plugins directory would be to simply present the first tab (description) content, so the user then needed to click the Development tab to see the changelog details. Since then, the script snippet above was inserted to attempt making the Development tab content appear when arriving at the page via a changelog URL. While the URL in the browser does change, that change is ineffective because the new URL refers to elements not existing when it changes. (Interestingly, if the page is immediately refreshed in the browser, the Development tab content does indeed appear.) I propose 1 of 2 resolves to this issue: 1. Move the script snippet to be the last element before the close of the article html block, '''OR''' 2. Wrap the script content in some deferred logic structure (e.g., window.onload() or similar) so it runs after the page is loaded.",defect (bug),closed,normal,,Plugin Directory,fixed,has-patch,