Hari Why bother with the length of the links when can use markdown to hide them behind a word ?
This is the first link
This is the second link
This would be based on traditional markdown, so
This is the [first](/d/737-how-to-get-short-url-view-in-flarum-like-github-links) link
This is the [second](https://discuss.flarum.org/d/28182-github-short-url-test) link
Another alternative would be to use a URL shortening service like Bitly - however, you should be aware that malicious links often hide behind URL shortners, so perhaps this isn't the best idea in terms of reputation.