While I am aware of the potential SEO issues that come with duplicate content, my project is not currently focused on that aspect.
Looking at my backbone router configuration, here it is:
routes: {
"": "startOrder",
"order/:orderNumber/:stepName": "getOrder",
"order/:orderNumber/:stepName/": "getOrder"
},
You may notice that the second and third routes direct to the same destination.
The challenge arises when a user enters a URL that ends with just a "/" character. In such cases, I would like it to trigger a distinct function (and then remove the slash), but instead, it always matches with the blank route. As a result, this causes issues later on due to the presence of an unnecessary slash in the URL.
Is there something crucial that I seem to be overlooking in this scenario?