Skip to content

Commit fb78d5d

Browse files
Ignores going to previous page when at /home
1 parent fa38c68 commit fb78d5d

File tree

1 file changed

+4
-1
lines changed
  • EssentialCSharp.Web/wwwroot/js

1 file changed

+4
-1
lines changed

EssentialCSharp.Web/wwwroot/js/site.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ const app = createApp({
152152
}
153153

154154
function goToPrevious() {
155-
window.location.href = "/" + PREVIOUS_PAGE;
155+
debugger;
156+
if (!window.location.href.endsWith("/home")) {
157+
window.location.href = "/" + PREVIOUS_PAGE;
158+
}
156159
}
157160
function goToNext() {
158161
window.location.href = "/" + NEXT_PAGE;

0 commit comments

Comments
 (0)