Generate a URL in LWC for navigation
If you ever want an anchor tag to have the href dynamically built you can rely on NavigationMixin again in association with a different method, which is GenerateUrl.
In the last post, we looked at how to navigate a user to the destination page using the NavigationMixin
and Navigate
method.
If you ever want an anchor tag to have the href dynamically built you can rely on NavigationMixin
again in association with a different method, which is GenerateUrl
.
Here is a snippet demoing that!
Hope this is helpful!