Ah, yes. So I have in config.inc.php
base_url = “http://mydomain.fi”
restful_urls = On
base_url[index] = http://mydomain.fi/index
base_url[journal1] = http://juornal1.mydomain.fi
Wildcards are enabled.
In htaccess I remove the index.php part and rewrite subdomains.
So with two example journals with this setup I would have
http://juornal1.mydomain.fi
http://mydomain.fi/journal2 (this works since no base_url is defined for journal2)
Now, if I open the admin panel from journal1, the links that I get in the journals drop down are:
http://juornal1.mydomain.fi/submissions (this works)
http://juornal1.mydomain.fi/journal2/submissions (this of course does not, because the subdomain remains as base)
In journal2 the same drop down is:
http://juornal1.mydomain.fi/submissions (this works)
http://mydomain.fi/journal2/submissions (this works)
Basically everything else seems to work. The only problem seems to be with that drop down.
Edit. I understand that the changes should apply here:
Line 197: $contextUrl = $dispatcher->url($request, ROUTE_PAGE, $workingContext->getPath(), ‘submissions’);
However, I am not sure which variable would work here.