Bug 988396 - URL generation flow

See bug https://bugzilla.mozilla.org/show_bug.cgi?id=988396 please.