Cleaned up how capture url is handled

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>