Closed joshuadavidthomas closed 2 months ago
Also, this app has react client side navigation that does not add a trailing slash. I tend to prefer the trailing slash and use Django's default behavior of adding one, but I'm finding it useful in this app for debugging purposes to differentiate between a client or server side navigation on whether the url has the trailing slash or not. The active property is not applied if the trailing slash is missing:
On second thought, the client side navigation may not have anything to do with the active matching. Since the nav is rendered server side any client side navigation doesn't really affect the template since it's already been rendered.
I have a nav with two items defined:
/leases/
/leases/add/
If I navigate to the second one, both are marked as active.