May 4, 2011

"Link to source" issue | CyberSEO Pro | Support Forum

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_TopicIcon
"Link to source" issue
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
February 16, 2023
9:14 am
Avatar
MediFormatica
Member
Members
Forum Posts: 49
Member Since:
December 17, 2022
sp_UserOfflineSmall Offline

I enabled the “Link to source” setting to make the post links go directly to the source. It works fine for the posts created by CyberSEO, but all the posts that I created manually now don’t open, they just reload the page I’m on. That happens everywhere on the site. When I disable the setting the manual post links work again but the CyberSEO posts now go to the local page instead of the source page.

I would like this functionality to only work for the posts created by CyberSEO.

February 16, 2023
9:49 am
Avatar
MediFormatica
Member
Members
Forum Posts: 49
Member Since:
December 17, 2022
sp_UserOfflineSmall Offline

It seems like it is expecting a URL in the “cyberseo_post_link” custom field. If the custom field is empty (as in manually added posts) it leaves the link empty. If add the custom field to the manual posts and enter their URL then the links work.

February 16, 2023
10:17 am
Avatar
CyberSEO
Admin
Forum Posts: 3718
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Yes, it uses the cyberseo_post_link custom field value to as a redirect source.

Fixed in version 10.033.

Thanks for heads up!

February 16, 2023
10:44 am
Avatar
MediFormatica
Member
Members
Forum Posts: 49
Member Since:
December 17, 2022
sp_UserOfflineSmall Offline

OK, great. Thank you.

Would there be a way to make it also create a 301 permanent redirect so if someone directly uses the real permalink it still redirects to the source URL?

February 16, 2023
10:53 am
Avatar
MediFormatica
Member
Members
Forum Posts: 49
Member Since:
December 17, 2022
sp_UserOfflineSmall Offline

I tried the update and it works now, but I noticed a strange behavior.

When on a manually added post, the recent posts links are always going to the local URL even for those that were added by CyberSEO. Once I go to that CyberSEO post, the recent links will work with the Source URL instead of the local one.

February 16, 2023
11:03 am
Avatar
CyberSEO
Admin
Forum Posts: 3718
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

If you add a post manually, you have to create a custom field for cyberseo_post_link in your WordPress post editor, and set the redirect URL there. Otherwise how CyberSEO pro will know, it’s not a local post but a post, which must be redirected?

February 16, 2023
5:23 pm
Avatar
CyberSEO
Admin
Forum Posts: 3718
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Forgot to add. Perhaps you need to do this: Login to see this link

Screen-Recording-2018-04-01-at-03.12-PM.gif

February 16, 2023
5:24 pm
Avatar
MediFormatica
Member
Members
Forum Posts: 49
Member Since:
December 17, 2022
sp_UserOfflineSmall Offline

Found a nice workaround, without using the  “Link to source” setting.

Adding the following code to the Theme’s Single Post (single.php) file just before the “get_header(); ?>” will automatically redirect to the external link if the cyberseo_post_link custom field isn’t empty. Works with direct links too.

Login to see the code

February 16, 2023
5:26 pm
Avatar
CyberSEO
Admin
Forum Posts: 3718
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

I believe the previous tip should work. At least, I can’t see any problems with link redirection on my test blog. Also don’t forget about Ctrl+F5 to reset your browser cache.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 64

Freedom: 61

MediFormatica: 49

B8europe: 47

saviulisse67: 45

Member Stats:

Guest Posters: 338

Members: 2692

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1552

Posts: 7847

Newest Members:

accounting.sentientholdings, omamactmi, ibra80ar, scgwatch, daniel.teamsnordic, pete.pjboyle

Administrators: CyberSEO: 3718