diff options
author | Fu Xu <fuxu@fuxu.name> | 2016-11-10 08:57:46 +0300 |
---|---|---|
committer | Fu Xu <fuxu@fuxu.name> | 2016-11-12 16:45:45 +0300 |
commit | b99282804d682251928f932812068513f4061abb (patch) | |
tree | 40e8d8c3731337ce8741be0eaaca294dda298ab7 /app/controllers/help_controller.rb | |
parent | 0c99e5d0b6b457ef7db2c36f1394fad5c63d1142 (diff) |
fix error links in help page
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 4eca278599f..4b3c71874be 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -7,8 +7,8 @@ class HelpController < ApplicationController @help_index = File.read(Rails.root.join('doc', 'README.md')) # Prefix Markdown links with `help/` unless they already have been - # See http://rubular.com/r/nwwhzH6Z8X - @help_index.gsub!(/(\]\()(?!help\/)([^\)\(]+)(\))/, '\1help/\2\3') + # See http://rubular.com/r/ie2MlpdUMq + @help_index.gsub!(/(\]\()(\/?help\/)?([^\)\(]+\))/, '\1/help/\3') end def show |