I need to create no follow links with link_to
.
I'm looking for something like this:
<%= link_to "example", example_path, :target => "_blank" %>
But for no follow of course.
I need to create no follow links with link_to
.
I'm looking for something like this:
<%= link_to "example", example_path, :target => "_blank" %>
But for no follow of course.
You can specify other attribues with link_to:
<%= link_to "example", example_path, rel: 'nofollow' %>
Produces:
<a rel="nofollow" href="example_path">example</a>
© 2022 - 2024 — McMap. All rights reserved.
<%= link_to 'example', {:controller => :controller_name, :action => :ask, :param1 => "setting"}, :rel => 'nofollow' %>
– Warrantor