Please navigate to the Settings > Permalinks menu from your WordPress dashboard. There, click the ‘Save’ button. Now, open your detail page and refresh it. It’ll work now.