Hi,
How does matrix choose the url to print when you link by assetid, when the linked asset has multiple urls?
eg. I have two site assets with different urls. If I link from (site1) https://secure.squiz.net to an about page, asset #1234, is matrix going to pick http://squiz.net/about or http://www.squiz.net/about? (ie. both www and non www are 'valid' system root urls)
If I want the www version to always be picked, is there config somewhere to do that (i tried changing the order of the system root URLs), or do I need to rewrite to non www url externally?
Thanks,
Matrix picks the one that is the most similar to the current URL (i.e., it has the same beginning) and then the shortest URL if there is more than one found.
So for an asset with URLs: www.example.com/products/cms and www.example.com/latest/cms
If you are on www.example.com/products you will get www.example.com/products/cms
If you are on www.example.com/latest you will get www.example.com/latest/cms
If you are on www.example.com you will get www.example.com/latest/cms
So fast, thanks Greg. Exactly what I was after - looks like the short URL is being picked so I'll need to remove it or get the rewrite in place.