zregvart commented on a change in pull request #189: opening foreign links in 
new tab
URL: https://github.com/apache/camel-website/pull/189#discussion_r390807595
 
 

 ##########
 File path: layouts/partials/header.html
 ##########
 @@ -42,12 +42,16 @@
                             <a class="navbar-link" href="#">{{ .Name }}</a>
                             <div class="navbar-dropdown">
                                 {{ range .Children }}
+                                {{ if strings.HasPrefix .URL "https" }}
+                                <a class="navbar-item" href="{{ .URL | relURL 
}}" target="_blank" rel="noopener">{{ .Name }}</a>
 
 Review comment:
   This adds `target` and `rel` attributes for one link on the menu. What we 
need is something that will add this for all external links regardless of where 
they are rendered from.
   
   [The issue](https://issues.apache.org/jira/browse/CAMEL-13888) in question 
has some pointers on how to accomplish that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to