https://bugzilla.wikimedia.org/show_bug.cgi?id=34144
--- Comment #2 from Patrick Reilly <[email protected]> 2012-02-02 18:59:09 UTC --- (In reply to comment #1) > ((Not only dependent on the .m., it also breaks on domains like > en.m.wiki.example.com or en.m.example.co.uk)) > > I think the best option would be a $wgMobileServer. > $wgServer = "//en.wikipedia.org"; > $wgMobileServer = "//en.m.wikipedia.org"; > > Do domain detection for the mobile site by extracting the host portion of > $wgMobileServer, and use it instead of $wgServer as the server starting. I don't think this would work that well. One installation of this extension could possibly serve many wikis as is the case on our production cluster. I think it would be best to support a domain format string. This way we could support not only domain parts, but paths and query string values as well. > > Also include a hook into the mobile url detection code. Let the hook > potentially force a true. For example WikiMedia could use the hook to say that > if someone accidentally ends up at m.en.wikipedia.org it IS a mobile domain. This is a good idea. We would need to make sure that the hook system will work in the context of an output buffer handler (e.g., after shutdown, etc.) > Also consider the possibility of /m/ paths. Like http://wiki.example.com/m/Foo > http://wiki.example.com/mobile/index.php for mobile site. eg: For those on > hosts who can't alias a subdomain. This is one of our current goals. > > Actually given that fact, we may want to setup MobileFront end so that by > default every url ends up as a ?useformat=mobile url as the default. This unfortunately will not work for us. It would possibly have caching implementation issues. But, we might be able to work around that longer term. > And switch to path or subdomain style setups when configured to. That way > it'll work out > of the box without any path or domain aliasing. Just like MediaWiki works out > of the box with /index.php?title=Foo urls. It would work out of the box if we implemented something like: https://raw.github.com/gist/1590648/86abdf93a99876c609862b28f8dae1b488bded03/MobileFrontend.php -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
