[wp-trac] [WordPress Trac] #34946: new comment redirects break anchors in Safari

WordPress Trac noreply at wordpress.org
Thu Dec 10 04:40:12 UTC 2015


#34946: new comment redirects break anchors in Safari
--------------------------+------------------------------
 Reporter:  chuckmoulton  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by chuckmoulton):

 @boonebgorges

 The recent comments widget puts a sidebar on a WordPress blog with the 20
 most recent comments.  Clicking on any of those 20 comments results in a
 different link depending on the configuration.


 Configurations:

 1) If pre- WordPress 4.4 and "break comments into pages" is unchecked,
 then this link:
 example.com/2015/12/example-post/#comment-1234567

 2) If pre- WordPress 4.4 and "break comments into pages" is checked, then
 this link:
 example.com/2015/12/example-post/comment-page-1/#comment-1234567

 3) If WordPress 4.4 -- regardless of the "break comments into pages"
 setting --, then this link:
 example.com/2015/12/example-post/comment-page-1/#comment-1234567


 When "comment-page-1" is in the link, the WordPress server redirects.
 Safari drops anchor tags from any server redirect.


 Redirect behavior:

 A) If (1), then no redirect.

 B) If [ (2) or (3) ] and most browsers (Chrome, Firefox, IE, etc.), then
 this redirect:
 example.com/2015/12/example-post/#comment-1234567

 C) If [ (2) or (3) ] and Safari, then this redirect:
 example.com/2015/12/example-post/


 I am trying to avoid (C) because many readers and active participants of
 the blog use iPhones.  Before WordPress 4.4 came out, I could avoid (C) by
 choosing configuration (1) instead of (2).  After the WordPress 4.4
 update, I am forced to use configuration (3), which means I get behavior
 (C).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34946#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list