Don't rely on global title state for url generation

Change-Id: Ib0ef55b54722d1d63405495a69795a4d04f01ab5