Remove hardcoding of key syntax for base url

and /static and /jump_to_id link substitutions
LMS-11198

@cpennington @doctoryes please review
Since you're changing the docstring anyway, perhaps you could put a single example in the docstring? The method below has examples and it makes its utility clear.