Error when clicking on the homepage logo

@ogulcan1787 I’ve updated the code above.