Use key variable instead of pathname
Merge pull request #123 from IonicaBizau/patch-1

Use key variable instead of pathname