Added redirect to raw url
fixed null checks
Merge pull request #8 from mawiseman/master

redirect to url