[wp-trac] [WordPress Trac] #42983: HTML Form to open links no longer working

WordPress Trac noreply at wordpress.org
Tue Dec 26 21:10:54 UTC 2017


#42983: HTML Form to open links no longer working
--------------------------+-----------------------------
 Reporter:  ipodhacks142  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Previously I have used a form with links in to create a drop down menu
 that users can choose a file from to download. This has been working fine
 up until recently when it suddenly stopped working for no apparent reason.
 I beleive this to be caused by something being changed with wordpress. See
 code below:


 {{{
 <form style="clear: both; line-height: 25px; height: 25px; vertical-align:
 top; margin-bottom: 15px;" onsubmit="open(this.url.value,'','');return
 false;">
 <div style="float: left; display: inline; margin-right: 5px; width: 300px;
 line-line-height: 25px; height: 25px;"><select style="width: 300px;
 padding: 1px;" name="url"><option value="">Download iPhone
 firmwares</option>

         <option value="">– – – – – –
 – – – – – –iPhone X – –
 – – – – – – – – –
 – –</option>
                                                 <option
 value="http://appldnld.apple.com/ios11.2.1/091-54847-20171213-5FBB02FC-
 DDFB-11E7-9CEF-07E4FB2783B2/iPhone10,6_11.2.1_15C153_Restore.ipsw">iPhone
 X – iOS 11.2.1 – iPhone10,6 (15C153)</option>
                                                 <option
 value="http://appldnld.apple.com/ios11.2/091-51760-20171206-BA09FB16-D5F7-11E7-A344-36B9DC24E03F/iPhone10,6_11.2_15C114_Restore.ipsw">iPhone
 X – iOS 11.2 – iPhone10,6 (15C114)</option>
                                                 <option
 value="http://appldnld.apple.com/ios11.1.2/091-48137-20171116-4F9256F2-C9C7-11E7-8F92-8DE0F451CBCD/iPhone10,6_11.1.2_15B202_Restore.ipsw">iPhone
 X – iOS 11.1.2 – iPhone10,6 (15B202)</option>
                                                 <option
 value="http://appldnld.apple.com/ios11.1.1/091-42552-20171106-4525806E-
 C39A-11E7-B432-4BBCF8FD2868/iPhone10,6_11.1.1_15B150_Restore.ipsw">iPhone
 X – iOS 11.1.1 – iPhone10,6 (15B150)</option>
                                                 <option
 value="http://appldnld.apple.com/ios11.1seed/091-41194-20171023-8AEAD654-B5F2-11E7-8655-C76EBEA7E146/iPhone10,6_11.1_15B93_Restore.ipsw">iPhone
 X – iOS 11.1 – iPhone10,6 (15B93)</option>
 </select></div>
 <div style="float: left; display: inline; line-height: 25px; height:
 25px;"><input type="submit" value="Download" /></div>
 </form>
 }}}



 Previously, upon clicking the download button, the link would open
 immediately in a new tab. Now though, a link similar to the one below
 opens in the same tab (the link in the menu is just added onto the current
 page URL).

 http://www.ipodhacks142.com/downloads/?url=http%3A%2F%2Fappldnld.apple.com%2Fios11.2%2F091-51760-20171206-BA09FB16-D5F7-11E7-A344-36B9DC24E03F%2FiPhone10%2C6_11.2_15C114_Restore.ipsw

 I fairly sure this is an issue with wordpress itself as nothing else has
 been changed. If you need any other information please let me know. I
 really need this solved as soon as possible so any help would be
 appriciated.

 Effected page: http://www.ipodhacks142.com/downloads/

 Also worth mentioning that this code has always been broken by wordpress
 if you open the visual view, but it works if you only open the page in
 text view.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42983>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list