Rewrite old view/artefact.php URLs to new artefact/artefact.php URLs

Bug #1415713 reported by Aaron Wells
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Aaron Wells
1.10
Fix Released
Medium
Unassigned
15.04
Fix Released
Medium
Aaron Wells

Bug Description

In preparation for Bug 1298646, we refactored the view/artefact.php file into artefact/artefact.php

This has the side effect that old URLs for individual artefact pages are now incorrect. This affects search engines and hard-coded links, as well as some third-party modules that haven't been properly updated.

It's a simple matter to add a redirect script at the old location, pointing to the new location, so that these URLs will continue to function.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/4232

Revision history for this message
Aaron Wells (u-aaronw) wrote :

To test:

1. Upload an image into your portfolio content
2. Create a page
3. Display the image in an Image block on the page
4. Click on the image in the block
5. You'll now be at the image detail page, e.g. http://mahara.example.com/artefact/artefact.php?artefact=6&view=6
6. Manually change that URL in your browser to have "view/artefact.php" instead of "artefact/artefact.php", e.g. http://vegas.wgtn.cat-it.co.nz/mahara/htdocs/view/artefact.php?artefact=6&view=6

Expected result: You should be invisibly redirected to the artefact/artefact.php page, and successfully see the artefact detail page.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/4232
Committed: http://gitorious.org/mahara/mahara/commit/0de9fa765933fc75aabfc6031763801e64af606f
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 0de9fa765933fc75aabfc6031763801e64af606f
Author: Aaron Wells <email address hidden>
Date: Thu Jan 29 16:07:14 2015 +1300

Redirect old-style view/artefact.php URL to artefact/artefact.php

Bug 1415713

Change-Id: I4ffca92d78267910894ff37de179289105178601

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "1.10_STABLE" branch: https://reviews.mahara.org/4286

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/4286
Committed: http://gitorious.org/mahara/mahara/commit/06d9a08fefffcd4ed63b8801a4fe033e5dd31c8c
Submitter: Aaron Wells (<email address hidden>)
Branch: 1.10_STABLE

commit 06d9a08fefffcd4ed63b8801a4fe033e5dd31c8c
Author: Aaron Wells <email address hidden>
Date: Thu Jan 29 16:07:14 2015 +1300

Redirect old-style view/artefact.php URL to artefact/artefact.php

Bug 1415713

Change-Id: I4ffca92d78267910894ff37de179289105178601

Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.