Routing not working in new Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Nop-Templates.com wrote:
Hello,

There are several things you could check:

Is your controller a public class?
Is your method (the Index endpoint) a public method? Actually, could you share the method signature with us so we can see if there is anything wrong with that also?
You could try to remove the namespace parameter when you are registering the route.
Also, try to call your method without the Id parameter so you could see if that is causing an issue.

Hope that helps!

Regards,
Anton


I can't believe I fell for this!  My route provider did not have the class set as public partial class and my controller was not decorated with public...

I got it working!

Thanks to all who helped!
4 years ago
Happens some times. I am glad that you have figured it out.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.