[wp-trac] [WordPress Trac] #40227: shortlink shows POST instead of PAGE guid
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Mar 21 23:42:10 UTC 2017
    
    
  
#40227: shortlink shows POST instead of PAGE guid
--------------------------+------------------------------
 Reporter:  Darko A7      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.7.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Comment (by dd32):
 Hi @Darko-A7 and welcome to Trac,
 This is by design - `?p=123` will redirect to the correct location for
 post_id 123 regardless of if it's a post, page, attachment or custom post
 type.
 If you're not seeing that redirect happen for you, it sounds like there's
 something else at play here preventing that, and that's what you should be
 looking at for debugging.
 For reference, here's a live site performing as expected:
 https://dd32.id.au/?p=8319 (redirects to the page)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40227#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list