Adding course link for block plugin

Adding course link for block plugin

by Prakash Raju -
Number of replies: 1

Hi Team,

I am new to mobile development for Moodle plugins. I'm currently working on adding mobile support for my plugin using the link Mobile support for moodle plugins. This is basically a block type plugin which shows users with list of courses based on various configs. Users can click on any course and start their learning(Similar to course overview block). With my current implementation, every time user clicks on the course link, it gets open in a new browser instead of opening in the app itself. Find below the code I tried.

<ion-content>
 <ion-item>
   <a href="SERVER_ROOT/course/view.php?id=2" capture="True" core-link>Click to open course</a>
 </ion-item>
</ion-content>

Can someone please point me in the right direction? 

The moodle version I use is 3.6.6+ (Build: 20191030) and the mobile version I use is 3.9.4

Average of ratings: -
In reply to Prakash Raju

Re: Adding course link for block plugin

by Mihir J -
Hi - I have the same query?
Hi Prakash - were you able to get any solution?
Thank you!