refs #10898 - Execute string replacement on external paths - Take non-top-level base URLs into consideration (to avoid #10776 dups) - Added tests for all of the above cases