Skip to content

Commit

Permalink
fix empty userId 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Petrovich-A committed Jul 4, 2023
1 parent fa48c8b commit 4c70dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h6></h6>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
</div>
<form th:action="@{'/order/read-history/' + principal.userId}">
<form th:action="@{/order/read-history/{userId}(userId=${#authentication.principal.userId})}">
<button type="submit" class="order-btn">Orders history</button>
</form>
</div>
Expand Down

0 comments on commit 4c70dcf

Please sign in to comment.