Redirecting to last desired url after 401 and login, parsing markdown
for every db query, parsing post references