diff --git a/app/src/main/java/com/termux/app/activities/HelpActivity.java b/app/src/main/java/com/termux/app/activities/HelpActivity.java index fa32bfc4e2..facbf36e5a 100644 --- a/app/src/main/java/com/termux/app/activities/HelpActivity.java +++ b/app/src/main/java/com/termux/app/activities/HelpActivity.java @@ -12,6 +12,8 @@ import android.widget.ProgressBar; import android.widget.RelativeLayout; +import com.termux.shared.termux.TermuxConstants; + /** Basic embedded browser for viewing help pages. */ public final class HelpActivity extends Activity { @@ -39,7 +41,7 @@ protected void onCreate(Bundle savedInstanceState) { mWebView.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { - if (url.startsWith("https://wiki.termux.com")) { + if (url.equals(TermuxConstants.TERMUX_WIKI_URL) || url.startsWith(TermuxConstants.TERMUX_WIKI_URL + "/")) { // Inline help. setContentView(progressLayout); return false; @@ -60,7 +62,7 @@ public void onPageFinished(WebView view, String url) { setContentView(mWebView); } }); - mWebView.loadUrl("https://wiki.termux.com/wiki/Main_Page"); + mWebView.loadUrl(TermuxConstants.TERMUX_WIKI_URL); } @Override