よろづやアンテナ

ITから生活の参考になる情報を備忘録代わりに残していきます

Redmine Tweaks 外部URLを別ウインドウで開いたり匿名http referrer機能のplugin

会社でよくタスク管理で使われるRedmineですが、外部URLを組み込むときに、そのURLをクリックすると、送信元の情報がリファラされてしまいます。

 

会社でよくタスク管理で使われるRedmineですが、外部URLを組み込むときに、そのURLをクリックすると、送信元の情報がリファラされてしまいます。

 

基本は、そのURLをコピー&ペーストしてブラウザに貼り付ければ、問題ないんですが、それも面倒。

 

そして、Redmineには、外部URLを別ウインドウで開いたり匿名http referrer機能のpluginがあります。

こちら、

http://www.redmine.org/plugins/redmine_tweaks

 

このツールの機能です。

【Features】
・global header for all projects
・global footer for all projects
・welcome text for login page
・global sidebar content support
・set info message above new ticket (e.g. for guidelines)
・use "Project guide" on project overview page
・option to remove "my page" from top menu
・customize "Help" url in top menu
・disable (hide) modules for projects
wiki marcos: list_users, list_projects, date macros, garfield, youtube, vimeo, twitter, calendar, last_updated_by, last_updated_at, recently_updated, gist
・user#1 and user:admin support for textile
・add custom menu items to top menu
・open external urls in new window
・noreferrer for external urls
・Hide role in project member box
・"Go to top" link
・info page with all available macros
・configurable issue rules
 -prevent to close an issue with open sub issues
 -change assigned_to_ automatically, if issue status changes
 -assigned_to has changed, but status change is required, too

 

 

続いて、必要な要件です。Redmineのバージョンが2.6.0以上、Rubyのバージョンが2.0.0以上だと動作します。

 

【Requirements】

Redmine version >= 2.6.0Ruby version >= 2.0.0

 

そして、インストール手順です。
$ cd $REDMINE_ROOT$ git clone git://github.com/alphanodes/redmine_tweaks.git plugins/redmine_tweaks$ bundle install --without development test 

 

実際にプラグインがインストールされたかどうかは、Redmineにログインして、プラグインの項目にインストールしたプラグインが表示されていることを確認してください。また、管理からTweaksという項目ができるので、実際に設定ができます。

 

ただ、動作確認したところ、なぜか動作しませんでした。プラグインの設定で「別のウインドウで開く」「匿名リファラ」というような項目があり、設定を有効にしてみましたが、当方の環境では動作しませんでした。

 

設定変更して動作したのが、トップページのヘルプの表示を消すとか、ヘルプのリンクを変えるなどは動作しました。うーん、環境依存なのか。ちなみに、Redmineのバージョンは3.3、CentOSは7.2でどちらも最新をインストールしています。

 

httpリファラを送信させない設定については、別途、共有したいと思います。