Skip to content

Commit

Permalink
Fix duplicate ampersand in URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Feb 7, 2025
1 parent 47e5bca commit f5f6f49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},

baseUrl: function ( url ) {
return 'themes.php?page=wpcom-install-theme&' + url.replace( '?', '' );
return 'themes.php?page=wpcom-install-theme&' + url.replace( /^[&?]/, '' );
},

themePath: '&theme=',
Expand Down

0 comments on commit f5f6f49

Please sign in to comment.