Add base route code for routes with dots
Refactored to a single if statement
Fixed backwards compatibility and added test
Merge pull request #1187 from jvandesande/AdminHasRoute

Add base route code for routes with dots