Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update back button to redirect to home when no route history (#241)
Update back button in PostDetails.astro to redirect to home page when there's no route history. If a blog post url is pasted in the browser and there's no route history ,prior to this commit, back button did not work as expected. Now, if there's somewhere to go back, the back button will go back to the previous route. If not, the back button will redirect to home page.
- Loading branch information