Skip to content

Add 'nofollow' attribute to SkinObject links#6890

Merged
mitchelsellers merged 2 commits intodnnsoftware:developfrom
uzmannazari:patch-7
Jan 7, 2026
Merged

Add 'nofollow' attribute to SkinObject links#6890
mitchelsellers merged 2 commits intodnnsoftware:developfrom
uzmannazari:patch-7

Conversation

@uzmannazari
Copy link
Copy Markdown
Contributor

enhancement/nofollow-login-register

Fixes #6889

Summary

This PR improves default SEO hygiene for authentication-related links in DNN by addressing unnecessary crawler discovery of low-value URLs.

Changes included:

  • Added rel="nofollow" to Login and Register links in UserAndLogin.ascx when the user is not authenticated.
  • Added a Disallow: *?returnurl=* rule to the default robots.txt to reduce crawling of parameterized authentication URLs.

Rationale:

Login and registration links are typically rendered site-wide (often in headers) and can generate multiple URL variations containing the returnurl parameter. These URLs do not provide search value and may contribute to crawl traps, wasted crawl budget, and noisy index coverage reports.

The changes are minimal, backward-compatible, and do not affect user behavior, while helping reduce crawler link-following and discovery of authentication endpoints by default.

No functional behavior changes were introduced.

@valadas valadas added this to the 10.2.2 milestone Jan 7, 2026
@uzmannazari uzmannazari requested a review from mnouraei January 7, 2026 18:47
@mitchelsellers mitchelsellers merged commit 72bf2d8 into dnnsoftware:develop Jan 7, 2026
3 checks passed
@uzmannazari uzmannazari deleted the patch-7 branch January 8, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Add default rel="nofollow" to Login/Register links in UserAndLogin skin control to reduce crawl traps (e.g., returnurl=)

4 participants