Allow additional URL-schema for linking to redmine tickets

Added by Chris Volkert about 1 month ago

Hello,

we just updated our 3.0.4 Redmine to Redmine 4.2.0.

It is all working fine exept one problem.
In our documentation we have a lot of links pointing to redmine tickets that have the URL-schema from the older redmine which is: https://myredmine.mycompany.com/redmine/issues/ticket

but now, with the latest redmine, the correct URL is https://myredmine.mycompany.com/issues/ticket

which means, because the "/redmine/" part is missing now, that all our old links to redmine tickets are not working any more.

Is there a way to let redmine acceppt BOTH Urls?

That we can use our old links and also the newly created links together without changing anything on our documentation?

Thanks for your help.

Replies (3)

RE: Allow additional URL-schema for linking to redmine tickets - Added by Bernhard Rohloff about 1 month ago

Hello Chris,

I heavily doubt that it's possible in vanilla Redmine at the moment.

There are two ways that I can imagine to solve this problem.

1. Change the affecting URLs in the documentation. This should be an easy replacement in the database. Or you can create a script leveraging the REST API.
2. Apply a rule on the web server which rewrites your request URL from http://example.com/redmine to http://example.com/

Personally I would prefer the first one as it's in my eyes the cleaner solution.

Kind regards,

Bernhard

RE: Allow additional URL-schema for linking to redmine tickets - Added by Chris Volkert about 1 month ago

Hello,

thanks for your answer.

Your second point seems to be the correct one for me. Changing documentation is not possible, as i don't have access to every document at all that includes a link to our tickets. It could be Word-document from a customer somewherwe on his USB-Stick ;-)

If i can change the redmine webserver to acceppt https://myredmine.mycompany.com/issues/ticket AND https://myredmine.mycompany.com/redmine/issues/ticket everything would be fine.

Can you show me how to do that? I use the latest redmine VM.

RE: Allow additional URL-schema for linking to redmine tickets - Added by Lorenzo Meneghetti 14 days ago

Chris Volkert wrote:

If i can change the redmine webserver to acceppt https://myredmine.mycompany.com/issues/ticket AND https://myredmine.mycompany.com/redmine/issues/ticket everything would be fine.

Can you show me how to do that? I use the latest redmine VM.

It does not deal with redmine but with web server (apache,...) you have to put in place a rewrite rule. You need a systen admin if you have one.
thanks

(1-3/3)