Opened 6 years ago

Last modified 6 years ago

#1957 assigned enhancement

m.h.metadata::get_languages(): if multiple hosts for same language exist prefer one with name == $_SERVER['SERVER_NAME']

Reported by: rambo Owned by: rambo
Priority: minor Milestone: 8.09.10 Ragnaroek
Component: MidCOM core Version: 8.09 Ragnaroek
Keywords: Cc:


In staging/live setups where staging hosts are of the form https://cmsserver.domain.tld/site.domain.tld and live site of form http://site.domain.tld get_languages returns links to either live or staging hosts on both sides basically depending on chance.

This should be deterministic.

Change History (1)

comment:1 Changed 6 years ago by rambo

  • Status changed from new to assigned

additionally shorter prefixes could be preferred to longer ones (in case there is no match for $_SERVER['SERVER_NAME')

Note: See TracTickets for help on using tickets.