Hi
How does one go about getting the baseurl for a plugin.
In particular, my problem: I have a sitewide plugin, but as far as i can tell, the manage() function of the plugin class is only called from a journal specific url: eg:
http://www.myojs.com/index.php/{journalPath}/manager/plugin/generic/{pluginName}/{verb}/{args}
it is {journalpath} that is causing the problems since i do not always have a journal specified when i might want to link to my plugin management functions; and replacing {journalpath} with index doesnt work either...
now, if i want to send someone to somewhere when no journal has been selected, i cant use Journal::getPath() ... because we are not currently on a journal path. and it is not ideal to have to randomly select a journal from the database simply to get a url that will work.
I have looked, but i dont see a function such as $plugin->getBaseUrl() ... there is $plugin->getTemplatePath(), but that is not what i am looking for...
What is the best way to do this?