When making a news item on the Tools -> News page, trying to link to anything inside Koha gets rewritten as a relative path. Sometimes we may not want that, it's probably better to make it so that we have to be explicit about what url we want in there, rather than having TinyMCE try to help.
Created attachment 26785 [details] [review] Bug 12032 - TinyMCE rewrites urls in a very annoying and unexpected way To test: * create a news item with a link in it that is within the same domain example: my koha was at http://demo.mykoha.co.nz, I created a link in a news item to http://demo-intra.mykoha.co.nz * note that when the item is saved, the url changes to ../../../../ (or something like) * apply the patch * edit the link again, and save it * note that the link is saved correctly
Created attachment 26792 [details] [review] [SIGNED-OFF] Bug 12032 - TinyMCE rewrites urls in a very annoying and unexpected way To test: * create a news item with a link in it that is within the same domain example: my koha was at http://demo.mykoha.co.nz, I created a link in a news item to http://demo-intra.mykoha.co.nz * note that when the item is saved, the url changes to ../../../../ (or something like) * apply the patch * edit the link again, and save it * note that the link is saved correctly Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 26844 [details] [review] [PASSED QA] Bug 12032 - TinyMCE rewrites urls in a very annoying and unexpected way To test: * create a news item with a link in it that is within the same domain example: my koha was at http://demo.mykoha.co.nz, I created a link in a news item to http://demo-intra.mykoha.co.nz * note that when the item is saved, the url changes to ../../../../ (or something like) * apply the patch * edit the link again, and save it * note that the link is saved correctly Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and QA script.
Pushed to master. Thanks, Liz!
*** Bug 11883 has been marked as a duplicate of this bug. ***
Bug reintroduced, I believe by Bug 22661. It happens for example when OPAC and staff client are under the same domain but different subdomain and you are trying to create a link between the two.
(In reply to Lari Taskula from comment #6) > Bug reintroduced, I believe by Bug 22661. > > It happens for example when OPAC and staff client are under the same domain > but different subdomain and you are trying to create a link between the two. As this is old and released, please open a new bug and link them!