@RoySegall Why is this condition needed? This is the same code that is used above when an absolute URL is asked for.  In what case is the base_url used when a non_absolute URL is requested?  if you have a scenario I can use to test manually that would be great, I dont think the local.lincoln/lincolin/lincolin/foo applies with the return added back?