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

Avatar
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
Avatar
a4322999@drdrb.net
Guest
Guests

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?!)

Edit
—————————
To fix:

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

bye.

and sorry for my bad inglish :-P

May 26, 2014
12:37 pm
Avatar
Steve Mortiboy
Admin
Forum Posts: 2119
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: Michael Torbert
41
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 36
Members: 22360
Moderators: 0
Admins: 8
Forum Stats:
Groups: 4
Forums: 28
Topics: 2072
Posts: 8997
Newest Members:
Nic Randall
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve Klasen, Arnaud: 219Ashish Ravi
[i]
[i]
Skip to toolbar