Fix it: canunical url bug | General - All in One SEO Pack Pro Forum | Support | Semper Plugins


Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Fix it: canunical url bug
May 24, 2014
1:58 pm

Good morning sir.

I notice a bug in plugin. I use a plugin which make a pagination url translation example: classic wp url for pagination is /page/ 
the plugin offer a custom field to put anything i want.

The seo plugin section which generate a dead url is:

<!-- All in One SEO Pack 2.1.4 by Michael Torbert of Semper Fi Web Designob_start_detected [-1,-1] -->
<link rel='prev' href='CORRECT URL' />
<link rel='next' href='CORRECT URL' />

<link rel="canonical" href="INCORRECT URL USE /page/123" />
<!-- /all in one seo pack -->

th etag canonical use a default wp url for pagination.

I search in the code and i find the method that provide get a url of page:

yoast_get_paged() the function write a brutal link. I fixed for me and i want report the bug to you (and maybe to Yoast?!)

To fix:

call the global $wp_rewrite and print the $wp_rewrite->pagination_base instead of string “page”


and sorry for my bad inglish :-P

May 26, 2014
12:37 pm
Steve Mortiboy
Forum Posts: 2058
Member Since:
January 5, 2012
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online:
36 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 35

Members: 21476

Moderators: 1

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 2012

Posts: 8712

Newest Members:

Darren Cross

Moderators: Dawa Liu

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi

Skip to toolbar