The bulk of the changes around this feature were intruced with commit [tweaked capture referer when landing on sign-in page ](https://github.com/stefanosc/myflix/commit/3421a50e5b6caa881b02be03720f2f42f0b5ed0e)
And then fixed with commit [fixed a bug in capturing referer when signing in ](https://github.com/stefanosc/myflix/commit/e5002d1188d7f8ca6fac02839f68b248de9fdd5b)