Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-08-08 09:55:05 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-08-08 09:55:05 +0300
commit8e10efb275140064015807d66bfbc1297524d570 (patch)
treeb597f74118a2ba5b43f6aa5a81081017bf4f34b7 /layouts/feedback.html
parent7f5e8f82eb987fdad667fdde80cac95d4095139f (diff)
Rename redirect_from to disqus_identifier
To prepare for https://gitlab.com/gitlab-org/gitlab-docs/merge_requests/511, we need to have redirect_from freed from usage as it will be used by the nanoc-redirector gem.
Diffstat (limited to 'layouts/feedback.html')
-rw-r--r--layouts/feedback.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/feedback.html b/layouts/feedback.html
index 3f8a4de3..859dcab1 100644
--- a/layouts/feedback.html
+++ b/layouts/feedback.html
@@ -221,8 +221,8 @@
var disqus_config = function () {
this.page.url = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>';
this.page.title = '<%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %>';
- <% if @item[:redirect_from] %>
- this.page.identifier = '<%= @item[:redirect_from] %>';
+ <% if @item[:disqus_identifier] %>
+ this.page.identifier = '<%= @item[:disqus_identifier] %>';
<% else %>
this.page.identifier = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>';
<% end %>