keeps / redmine_wikicipher

Redmine Wikicipher plugin
9 stars 8 forks source link

Decipher/Cipher links not correct when URL not traditional #23

Open zlacelle opened 9 years ago

zlacelle commented 9 years ago

We're running redmine at https://redmine.company.com/redmine, not just at https://redmine.company.com. When we try to encode/decode, the URL gets rewritten incorrectly. For example: https://redmine.company.com/redmine/projects/testproject/wiki gets rewritten to https://redmine.company.com/projects/testproject/wiki.

hsilva-keep commented 9 years ago

Dear @zlacelle First of all, thank you for your feedback. And yes, we kind of have that URL creation hard-coded for a Redmine deployment in / (not suitable for other deployments).

So, as soon as we have the opportunity/time, we will fix that and let you know. OR, if you wish to, you can provide a fix by submitting a pull request, which we will happily review and integrate with the base code.

zlacelle commented 9 years ago

Great, thanks for replying. I just changed the hardcoded value, but I'll see if I can learn a bit of Ruby and come up with a fix.