Why not specify a base_url for journal2? I’ve never worked in a situation where a mixture of specified and non-specified journals is used; perhaps that’s the issue.
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks. I am going to suggest subdomains for all journals, but it might happen that not all journals want to use them. If they do, then this is of course not a problem anymore. However, since this dropdown seems to be basically the only problem here it would be nice to find out a working solution.
I am also thinking that would this same problem appear if one of the journals wanted a domain of their own? Would that lead to:
But I do not have the expertise to evaluate whether this would have some negative side effects. The advantage here is however, that if you do need a custom domain for just one journal (which could be quite common case?), then you do not have to define base_url’s for all journals in your installation by hand.
I also noted that there is a hook in PKPRouter.inc.php::getIndexUrl() which maybe could be used to solve this as well using a plugin, but I did not have the time to think that through yet.
I think it’s best to just specify all journals in base_url[...] settings in the configuration file; the downside (potentially a few extra configuration lines) is minimal compared to maintaining a modification to the router code.
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks, I guess it is and although we have around 45 journals this is of course manageable for us. I still think that this is a lot of work for a site where only one journals wants to have their own domain - that is if the same problem occurs in those cases as well.