Go live updating of links
This covers updating the links of an asset as a part of the go live process for WIPII.
This assumes you have an excel spreadsheet containing
For each asset id that is of Link Type NOTICE:
1. locate the asset using 'Quick search'
2. Edit the contents of the asset.
3. Find any instances referring to the asset we are redirecting to. In this case 'Bachelor of Laws', or to the asset id 28950.
a. If the item is in a WYSIWYG interface, simply click on the link in the text, click on the link icon, press the 'target' icon next to the URL asset id, right click on the redirect asset in the asset tree and select 'use me', click on 'Update Link', update any other links that might be in this container. Finally press commit.
b. If the item is in a rawhtml or plaintext container you will have to update it manually. Wherever you see a link like this:
<a href="./?a=361595">Bachelor of Laws (LLB)</a>
Change it to look like this:
<a href="%globals_asset_attribute_redirect_url:361595%" data-linktype="page_redirect">Bachelor of Laws (LLB)</a>
4. Once you have updated any links in the container, go to that containers 'Linking' screen. (In the top right corner, from the drop down menu select 'Linking')
5. You need to get the url for each asset id here so we can ensure that these pages have been correctly updated.
a. Copy each assetid and do a 'quick search' to find it in squiz. (I normally do this in a separate squiz window so you don't have to keep navigating back to the linking screen of the original asset)
b. Click on the binoculars to locate this asset in the asset tree. If multiple options appear, you can select any of them.
c. On the 'Page asset' that this container is located - right click and go to the 'web paths'
d. Copy and paste each url that starts with www into the excel spreadsheet for the original asset id, and save the document.
e. Open a couple of these links in your browser and ensure that the links have been updated correctly. Also ensure there are no other elements on the page that might have been missed. For example, links in the left or right menus. If there is anything out of the ordinary on these pages, either links not updating, broken styles/content, or anything at all please leave a comment in the excel spreadsheet so we can investigate it further.
6. The links inside that asset should now be all updated. To double check this, you can go to the linking screen of the original Degree page, and the Assetid you have just completed should no longer show up. If you go to the linking screen of the redirect page, you should now see that assetid should now be present there.
7. Rinse and repeat for every remaining asset id in the excel spreadsheet.
Once you have completed this:
Go to each asset in the excel spreadsheet that is of Link Type TYPE_1 or TYPE_2.
These are parent pages of the asset which need to be checked to ensure they have updated their links correctly.
Go to the urls of each of these assets (Do a quick search for the asset it, go to web paths screen, open each of the cms.victoria links in a new tab) and ensure that all links on those pages are pointing to the correct url.
To do this, hover over the link in the document and check that the url it is pointing to is either the url on the angular app (should start with www.victoria.ac.nz/explore), or the url of the redirect asset (ie what you see in the web paths on the redirect asset).
If they are incorrect, edit the contents to point to the correct location, and add the url/comment to the excel document.