This allows generating correct URLs for our search index
Allow lexer to be used independently of page parser/renderer