WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 21 months ago

#21765 new enhancement

Redirect to canonical URL if URL has 'preview' parameter with any nonempty value and user not log in

Reported by: egorpromo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4.1
Component: Canonical Keywords: close
Focuses: Cc:

Description

if any URL has nonempty GET-parameter 'preview' that there is noredirection to canonical URL.
If we have http://example.com?p={post_id}&post_type={post_slug}&preview=true there is no redirection to correct URL like http://example.com?{post_type}={post_slug} or like http://example.com/{post_type}/{post_slug} (if site has permalinks). This is bad for SEO and bad user experience. If user not log in there must be redirecttion.

Change History (3)

comment:1 @SergeyBiryukov3 years ago

  • Component changed from Rewrite Rules to Canonical

Related: #20496

comment:2 follow-up: @joostdevalk21 months ago

  • Keywords close added

I think that if the patch currently attached to #20496 goes in, the most important bit for this would be fixed, and we'd probably resolve the remainder as won't fix since we don't really redirect out parameters *anywhere*.... Agreed?

comment:3 in reply to: ↑ 2 @egorpromo21 months ago

Replying to joostdevalk:

I think that if the patch currently attached to #20496 goes in, the most important bit for this would be fixed, and we'd probably resolve the remainder as won't fix since we don't really redirect out parameters *anywhere*.... Agreed?

If you are asking me that I could say I just draw attention to the problem. It could be good if wordpress will have strong canonical component.

Note: See TracTickets for help on using tickets.