You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "PasunuriSrinidhi (via GitHub)" <gi...@apache.org> on 2023/04/22 07:12:31 UTC

[GitHub] [camel-website] PasunuriSrinidhi commented on a diff in pull request #995: Updated rules.js

PasunuriSrinidhi commented on code in PR #995:
URL: https://github.com/apache/camel-website/pull/995#discussion_r1174317634


##########
rules.js:
##########
@@ -36,15 +40,14 @@ class RelativeLinks extends Rule {
   setup() {
     this.on("dom:ready", event => {
       const anchors = event.document.getElementsByTagName('a');
-      if (anchors === null) {
-        return;
-      }
-      anchors.forEach(a => {
-        const href = a.getAttribute("href");
-        if (href && href.value.startsWith("https://camel.apache.org")) {
-          this.report(a, `For links within camel.apache.org use relative links, found: ${href.value}`);
+      if (anchors !== null) {

Review Comment:
   Thanks for your suggestion .I will edit the code



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org