Skip to content

Commit

Permalink
Ignores going to previous page when at /home
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Lester3 committed Oct 8, 2024
1 parent fa38c68 commit fb78d5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion EssentialCSharp.Web/wwwroot/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ const app = createApp({
}

function goToPrevious() {
window.location.href = "/" + PREVIOUS_PAGE;
debugger;
if (!window.location.href.endsWith("/home")) {
window.location.href = "/" + PREVIOUS_PAGE;
}
}
function goToNext() {
window.location.href = "/" + NEXT_PAGE;
Expand Down

0 comments on commit fb78d5d

Please sign in to comment.