Fixes the trailing slash bug
Fixes homepage forwardslash issue
Adds segment check
Merge pull request #2 from shadydragon/patch-2

Fixes the trailing slash bug