fixing pathname when viewing from index.html page