# HG changeset patch # User Ludovic Chabant # Date 1392364541 28800 # Node ID e6c2048e2c946bdc51c9f754b3a9d5603d5d043b # Parent e845ff2b4bd86efccc429b9cf51b8bf5ffc26783 Added ability to make simple links to child pages. diff -r e845ff2b4bd8 -r e6c2048e2c94 wikked/utils.py --- a/wikked/utils.py Wed Feb 12 15:24:29 2014 -0800 +++ b/wikked/utils.py Thu Feb 13 23:55:41 2014 -0800 @@ -54,6 +54,10 @@ if url.startswith('/'): # Absolute page URL. abs_url = url + elif url.startswith('./'): + # URL wants to be relative to the base url's name, instead + # of its directory. + abs_url = base_url + url[1:] else: # Relative page URL. Let's normalize all `..` in it, # which could also replace forward slashes by backslashes