Hi there,
I spent a bit of time researching this but I end up opening a topic here because I’m … confused
I have a Multisite install w/ Bedrock and a Sage 8 theme where one of the sites has a domain mapped to it.
I noticed that even on this domain mapped site the urls for the assets where using the domain I entered for WP_HOME
constant in the .env
file
which would cause a main problem of fonts not being loaded because of a cross-domain issue (which could be solved with CORS headers I guess - but that would not address the main issue I feel)
I tracked the issue down to the fact that in WP_CONTENT_URL
is setup using WP_HOME . CONTENT_DIR
when it seems like in a multisite install WP_HOME
is not used by default
in ms-default-filters.php
around line 86
// WP_HOME and WP_SITEURL should not have any effect in MS
remove_filter( 'option_siteurl', '_config_wp_siteurl' );
remove_filter( 'option_home', '_config_wp_home' );
I guess I could either remove the WP_HOME
part of the WP_CONTENT_URL
or some other work around but I would be really appreciative of some input or leads on how to solve this the best way
thanks in advance