Closed robinleung closed 9 years ago
Hi Robin,
Thanks for the bug report! I'll see if I can fix that...
Cheers, Aaron
Okay, it appears this is due to a bug in the Mahara XMLRPC method get_views_for_user(). For views, it retrieves "fullurl", which is the absolute URL of the page, and "url", which is the relative URL for the page. For collections, it just retrieves "url" which is the absolute URL of the collection.
To make a link to roam over via mnet we need that local URL. So, it breaks for collections because it's using the absolute URL.
It works in the gradebook, because the gradebook gets the collection's URL form the return value of "mnet_submit_view()", and that correctly fetches the partial URL for the collection.
I'll take a two-pronged approach to fix this:
This should fix it for the most Mahara & Moodle sites, without requiring both sites to be upgrade simultaneously. On the downside, it'll put that hacky workaround code into the Moodle plugin, but perhaps we can remove it after a couple of releases.
Mahara bug report to fix the issue on the Mahara side: https://bugs.launchpad.net/mahara/+bug/1514299
Should be fixed with commit 697ca001ecc0ea36ae6583ba7c024e2e0c831dc8
Thanks Aaron.
Moodle assignment links to collection is broken. It opens up "https://teportfolios.domain.ca/https://teportfolios.domain.ca/view/view.php?id=2972".
How to reproduce:
Currently on Mahara 15.04.1 and Moodle 2.8.8.
Thanks.