Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Do not append m. to the URL for opening page in browser

  • Loading branch information...
FlorianSW committed May 6, 2018
1 parent ad12a44 commit 6392b2a5c28c35169ffd14bfaef52262f182ab86
Showing with 1 addition and 4 deletions.
  1. +1 −4 app/src/main/java/org/wikipedia/dataclient/WikiSite.java
@@ -292,9 +292,6 @@ private static String languageCodeToSubdomain(@NonNull String languageCode) {

/** @param authority Host and optional port. */
@NonNull private String authorityToMobile(@NonNull String authority) {
if (authority.startsWith("m.") || authority.contains(".m.")) {
return authority;
}
return authority.replaceFirst("^" + subdomain() + "\\.?", "$0m.");
return authority;
}
}

0 comments on commit 6392b2a

Please sign in to comment.
You can’t perform that action at this time.