From 02b43cc05166fb5b27515c227bc5280793e53722 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Mon, 7 Aug 2017 16:25:39 -0700 Subject: [PATCH] switch from hardcoded master to page variable --- editdocs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editdocs.md b/editdocs.md index 91578e6576..99f5198776 100644 --- a/editdocs.md +++ b/editdocs.md @@ -12,7 +12,7 @@ $( 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://git.k8s.io/kubernetes.github.io/" + forwarding) } else {