extract base url value
foregroundcolor only if bg color not empty
Merge branch 'better'