Hello, at a glance it looks like you are missing the entrypoint name. By default I believe this is "Main", so it would be something like tecton.actions.navigateTo('MemberRewards', 'Main') To see full documentation on this see the following:
Answered
Linking to extension from dashboard widget
I have an extension for a rewards program that I am adding a dashboard widget entry point to so I can display points values.
All of that displays fine, but I also want to put a button on the dashboard widget that links to the full extension but having trouble getting it there.
I tried throwing a button on the widget and calling something like this in the jinja template hoping it would redirect, but it doesn't:
tecton.connected.then(function() {
document.querySelector('.btnGoToRewards').addEventListener('click', function() {
tecton.actions.navigateTo('MemberRewards');
});
});
The button of course looks like this:
<button class='btnGoToRewards'>Earn More</button>
Is there maybe a different way to do this I'm just overlooking?
155 Views
1
Answer
4 years ago
4 years ago
Tags