Sergey Biryukov
de14ea86bf
Canonical: Redirect paged requests for a static page assigned as the "Posts page".
...
This avoids displaying duplicate content of the home page under different URLs with appended page numbers.
This change only affects the `<!--nextpage-->` pagination (`page` query variable) and not the regular multiple posts pagination (`paged` query variable).
The posts page does not support the `<!--nextpage-->` pagination, so requests for invalid page numbers should be redirected to the page permalink, applying the logic previously implemented for single posts or pages.
Follow-up to [34492], [47727].
Props jeremyfelt, sachit.tandukar, SergeyBiryukov.
Fixes #45337 . See #40773 , #28081 , #11694 .
git-svn-id: https://develop.svn.wordpress.org/trunk@47760 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-04 10:40:06 +00:00
..
2017-11-30 23:09:33 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-01-29 00:43:23 +00:00
2019-12-19 18:48:49 +00:00
2020-01-29 00:43:23 +00:00
2020-05-04 10:40:06 +00:00
2019-10-06 15:04:18 +00:00
2020-03-28 20:42:31 +00:00
2020-05-02 22:34:50 +00:00
2020-01-29 00:43:23 +00:00
2020-03-12 15:53:01 +00:00
2020-03-03 16:53:32 +00:00
2018-08-17 01:50:26 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-04-29 17:23:30 +00:00
2020-02-08 05:29:54 +00:00
2020-02-14 00:11:00 +00:00
2019-09-15 11:03:45 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-03-28 20:42:31 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 21:40:05 +00:00
2020-04-30 12:03:11 +00:00
2016-07-08 14:36:37 +00:00
2018-08-17 01:50:26 +00:00
2020-05-02 22:34:50 +00:00
2020-01-29 00:43:23 +00:00
2020-02-19 04:38:39 +00:00
2020-04-23 18:39:32 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 06:31:22 +00:00
2020-02-26 13:16:10 +00:00
2020-02-11 21:41:26 +00:00
2020-02-06 06:31:22 +00:00
2020-05-03 22:56:01 +00:00
2020-01-29 00:43:23 +00:00
2019-01-14 04:54:01 +00:00
2020-01-29 00:43:23 +00:00
2020-04-04 00:25:36 +00:00
2019-03-21 19:47:29 +00:00
2020-02-25 12:48:11 +00:00
2020-01-29 00:43:23 +00:00
2020-02-02 04:07:50 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 06:31:22 +00:00
2020-01-29 00:43:23 +00:00
2020-04-08 00:53:18 +00:00
2020-03-02 01:11:29 +00:00
2020-01-29 00:43:23 +00:00
2020-04-30 12:03:11 +00:00
2020-01-29 00:43:23 +00:00
2020-04-26 13:42:03 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 06:31:22 +00:00
2020-01-29 00:43:23 +00:00
2020-03-24 01:05:31 +00:00
2020-02-06 06:31:22 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-03-13 21:12:01 +00:00
2020-01-29 00:43:23 +00:00
2019-07-08 00:55:20 +00:00
2020-01-29 00:43:23 +00:00
2019-07-27 14:29:28 +00:00
2020-01-29 00:43:23 +00:00
2020-04-08 00:53:18 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-03-05 11:53:34 +00:00
2018-08-17 01:50:26 +00:00
2020-05-04 02:44:44 +00:00
2020-01-29 00:43:23 +00:00
2020-02-06 06:31:22 +00:00
2020-02-06 06:31:22 +00:00
2020-02-05 06:24:16 +00:00
2019-03-21 20:19:16 +00:00
2020-02-21 17:03:12 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2020-04-29 15:23:37 +00:00
2020-01-29 00:43:23 +00:00
2020-01-29 00:43:23 +00:00
2019-07-08 00:55:20 +00:00