Create URL shortcuts using Requestly

If you are tired of typing long URLs in the address bar and looking for creating URL shortcuts, this post can be helpful for you.

Case 1: Shortcut to open Issue page from number (like JIRA)
Let’s say, you want to launch https://mycompany.atlassian.net/browse/PROJ-1000 by just entering PROJ-1000 in the address bar.

  1. Create “Redirect Request” rule.
  2. Choose condition: URL Matches(Regex) /q=PROJ-([0-9]+)/gi
  3. Redirect to: https://mycompany.atlassian.net/browse/PROJ-$1

Here the issue number is captured using a Regex group and substituted in the final URL.


Case 2: Shortcut for the initial part in URL
Let’s say, you want to launch https://github.com/requestly/requestly by just entering gh/requestly/requestly in URL.
Basically, gh/* should redirect to https://github.com/*.

  1. Create “Redirect Request” rule.
  2. Choose condition: URL Matches(Regex) /q=gh%2F((?:(?!&).)*)/gi
  3. Redirect to: https://github.com/rq_decode($1)

Here the part after gh/ is captured using a Regex group and appended after the expected base URL in the final request.


Please note that these rules work only when your default search engine is Google. In that case, when you enter the shortcut in address bar, Google tries to open https://www.google.com/search?q=SHORTCUT&oq=…. Above rules try to work on these assumptions and try to extract out shortcut text from the google URL.

1 Like