Repaired pathname issues
Removed dev .only and console.log