generalize the base url
quick fix
Merge pull request #1 from jdenen/generalize

Generalize URL string