The idea is that the url_to_file_path function would examine the URL to see if it was comprised of only digits. If so, it would try to match those digits with the indices of content folders.
Using the site structure the official Stacey site:
staceyapp.com/1/ would be the short url for staceyapp.com/how-it-works. staceyapp.com/5/3/ would link to staceyapp.com/documentation/variable-types/
There would need to be a new variable @shorturl.
There are a couple problems I can think of: 1. This idea does fall short for unindexed content folders like tutorials/ and download/. 2. In order to avoid conflicts between parsing long or short urls, folders cannot be named just with digits like 1.010/, 2.020/, 3.30