You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/03/11 08:44:33 UTC

[GitHub] [camel-website] favourori commented on a change in pull request #189: opening foreign links in new tab

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

 ##########
 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:
   Great. Will fix that today. Thanks for the pointers

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services