Come to think of it, you should probably have contains("://") || startsWith("//") to allow for URLs that define 'relative' to current schema

e.g. 

//example.com/test

Just allowing it to pass through and let the 'client/browser' handle the relative-to-absolute part.