Fixes at the end
There are two types of fixes. Let's discuss them here as follows:
- Fix—add mapping for card URL: This is an oversight. Without adding the card URL to
@GetMapping
inMainController
, refreshing the page will show an HTTP404
error page. The following is the commit record:
![](https://static.packt-cdn.com/products/9781788836968/graphics/ccc13c11-7f50-4313-9c68-9efad423f7e4.png)
Figure 13.10: Fix—add mapping for card URL commit
- Fix—unsubscribe from board channel when opening a card: The
vue-router
will trigger thebeforeRouteLeave
navigation guard when the URL is switched from the board URL to the card URL. The fix involves simply adding a condition guard to the unsubscribe method. The following is the commit history:
![](https://static.packt-cdn.com/products/9781788836968/graphics/3d396de4-8542-47bc-9656-f545a13af618.png)
Figure 13.11: Fix—unsubscribe from board channel when opening a card commit