A Redmine plugin that automatically converts external Redmine issue URLs in comments to internal links.
- Detects external Redmine issue links in comments (e.g.,
https://example.com/issues/123#note-2
). - Automatically converts them to Redmine internal link format (e.g.,
#123#note-2
). - Supports dynamically resolving the Redmine host and path configuration.
-
Clone this repository into your Redmine plugin directory:
cd /path/to/redmine/plugins git clone https://github.com/INSANEWORKS/redmine_auto_internal_link.git
-
Ensure the directory structure looks like this:
plugins/ └── redmine_auto_internal_link/ ├── init.rb └── lib/ └── redmine_auto_internal_link/ └── hooks.rb
-
Run the following command to load the plugin:
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
-
Restart your Redmine instance.
-
Navigate to an issue and add a comment containing an external Redmine link, e.g.:
This relates to https://example.com/issues/456#note-3.
-
After saving, the link will automatically be converted to the internal Redmine format:
This relates to #456#note-3.
- Redmine 6.x
- Ruby 3.0 or higher
If you encounter any issues or have feature requests, please open an issue on the GitHub repository.
This plugin is released under the MIT License. See the LICENSE file for details.
Happy Redmine-ing!