2008-10-29

More Moodle Annoyances: Copying & Pasting Links

When it's time for Lab activity, I create a Moodle web page that tries to set out the things I want to students to do in one clear page, with instructions and links etc.

The links are often Moodle links: the class forums, specific Moodle-hosted SCORM exercises, and external web links that have been added to the main course page.

But copying and pasting these links into my page of instructions can be a lottery: often when I (and my students) click on the links, we get a "page not found" message.

For some reason, the links get modified. I've just checked very carefully the difference between the links. For example, a link to an external web site is like this on the main page:
  • http://lms.domain.edu/mod/resource/view.php?id=73186
But it is like this after copying & pasting onto my instruction page:
  • http://lms.domian.edu/mod/mod/resource/view.php?id=73186
See that additional mod/ in the second link? Why the hell does Moodle do this to me???? Copy & Paste is such basic computer function that's existed for decades and Moodle goes and screws it up. Now I have to go through all the links on my instruction page to correct them!

OH MY GOD! Now Moodle's even hindering me from correcting them! In WYSIWYG mode, selecting the link clears the URL completely, and now the editor has stopped letting me change from WYSIWYG mode to HTML mode! WHY?!?!?!?!

Oh, Moodle, how do I hate thee? Let me count the ways.

UPDATE: Now the links seem to work OK! Clicking on the link forwards to a Moodle link page, and the external website opens in a pop-up window. Further examination of the links shows they now do NOT have the extra mod/ inserted in them.

But I didn't do anything. I don't understand why the links are now good. The only possibility I can imagine is that now I'm browsing in MS Internet Explorer 7, and before I was in Firefox (specifically Swiftweasel 3.03). I'll have to check the links again when I get back home to Swiftweasel. I know there can be a lot of little differences in how a web browser displays a page, but actually changing the links doesn't seem likely.

2 comments:

Pat Parslow said...

One of our students on the MUVEnation course pointed out your blog post to me (Thanks Peter!)

We have the same behaviour in Moodle. I hadn't tried copying and pasting the links directly in, so I hadn't run across the problem - but others had, and I suspect it has been driving them mad!

I write the text I want to show, highlight it and then click the link button - then I put in the URL I want. This seems to work reliably, *unless* Moodle has already broken the link, in which case it still screws up (in various, apparently random, and very annoying ways!)

Hope that helps - if I get time I am going to try and hunt down the code and put it out of my misery.

G.A.L.E.S.L. said...

Hi p@,

I seem to be having more general problems copying & pasting into Moodle... when I'm using Swiftweasel/Firefox on my home computer.

I don't seem to get so many when using Internet Explorer at work.

What I had been doing with external links is adding the links as resources on the main page (that way I can see if/when the students accessed those links) and then copying & pasting from the main page in one go (text and link at the same time).

Seems OK in IE but problematic in SW/FF.