From 7d05a7a520247c250da46f8b2f1bb4365669b98e Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Mon, 7 Aug 2017 16:24:59 -0700 Subject: [PATCH] switch to page variable from hardcoded master --- editdocs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editdocs.md b/editdocs.md index 331c526bd4..61883041f8 100644 --- a/editdocs.md +++ b/editdocs.md @@ -12,9 +12,9 @@ $( document ).ready(function() { $("#generalInstructions").hide(); $("#continueEdit").show(); $("#continueEditButton").text("Edit " + forwarding); - $("#continueEditButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/edit/master/" + forwarding) + $("#continueEditButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/edit/{{ page.docsbranch }}/" + forwarding) $("#viewOnGithubButton").text("View " + forwarding + " on GitHub"); - $("#viewOnGithubButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/tree/master/" + forwarding) + $("#viewOnGithubButton").attr("href", "https://github.com/kubernetes/kubernetes.github.io/tree/{{ page.docsbranch }}/" + forwarding) } else { $("#generalInstructions").show(); $("#continueEdit").hide();