From d569154ede260fea280026d9ea28b655dc477b90 Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Sat, 6 Jan 2024 18:09:15 +0200 Subject: [PATCH] Add an example of how to use URL override to HTTPify URLs --- wiki/URL_OVERRIDE.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wiki/URL_OVERRIDE.md b/wiki/URL_OVERRIDE.md index f3c9135..dcf8d87 100644 --- a/wiki/URL_OVERRIDE.md +++ b/wiki/URL_OVERRIDE.md @@ -6,6 +6,17 @@ If you want to extend the default URL functionality, you can add URL overrides. - **command**: the new URL that will replace the old one, usually should contain [placeholders](PLACEHOLDERS.md). ### Example +#### HTTPS-ify +Add the following URL override to add a button that allows a user to open the same website replacing HTTP with HTTPS protocol. + +| Field | Content | +| :- |:-----------------------| +| Regex | `^http://.*` | +| Command | `https://{url:rmvscm}` | + +when done correctly, all URLs that use HTTP will have a button to open the same website using the HTTPS protocol. +Note that you should consider just replacing all URLs that use HTTP with their safer alternative when possible. + #### FileZilla FTP Client Add a URL to the entry that we be overriden later: ```