New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEO: Add exception for rel="nofollow" #5800

Closed
sshcli opened this Issue Mar 19, 2018 · 7 comments

Comments

Projects
None yet
2 participants
@sshcli
Member

sshcli commented Mar 19, 2018

Steps to reproduce the issue

Expected result

Don't use rel="nofollow" if the link targets your own domain.

Actual result

Right now we have problems with internal linking, this is caused by the use of rel="nofollow"
rel="nofollow" is being used even for own domain.

System information (as much as possible)

Joomla version: 3.8.6
Kunena version: 5.1.0-RC4-DEV
Php version: 7.2.3
Database version: MySQL 5.6.38

Additional comments

@810

This comment has been minimized.

Member

810 commented Mar 20, 2018

where do you have this issue

@sshcli

This comment has been minimized.

Member

sshcli commented Mar 20, 2018

components\com_kunena\template\crypsis\layouts\bbcode\url\default.php
Line 20

@sshcli

This comment has been minimized.

Member

sshcli commented Mar 20, 2018

@810

This comment has been minimized.

Member

810 commented Mar 21, 2018

but what is your bbcode looks like?

@sshcli

This comment has been minimized.

Member

sshcli commented Mar 21, 2018

but what is your bbcode looks like?

It looks fine.
The issue I'm reporting here does not have any visible defect for the human eye, but for google crawler bots and other search engines.

What you need to do is to remove the nofollow when someone insert a URL in the text area that is pointing to another page in the same domain, for example:

if   URL in the content = The same domain where the kunena forum is installed
{
	$rel = 'rel="noopener noreferrer"';
}
else
{
	$rel = 'rel="nofollow noopener noreferrer"';
}

This way you are letting googlebot and other search engines to find and index your content quicker.

@sshcli

This comment has been minimized.

Member

sshcli commented Mar 21, 2018

In other words,
The use of nofollow should be only for external links

@sshcli

This comment has been minimized.

Member

sshcli commented Jun 11, 2018

As a workaround for this.
Maybe we just need an additional bbcode tag for URL

One for external links (the current one) with rel=nofollow
Another one for internal links without rel=nofollow

If necessary, also add a button for the internal link in the bbcode editor

810 added a commit that referenced this issue Jul 26, 2018

@810 810 added bug 5.1 labels Jul 26, 2018

@810 810 added this to the 5.1.3 milestone Jul 26, 2018

@810 810 closed this Jul 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment