When i create a latest news entry i create a link to the new section or document. To do this i select the asset when creating the link in the link tool (use me option) but for some reason it won't go to the assets url when clicking the link on the site. It try's to find the asset in the current url location.
I would have thought that when the link is clicked it knows the assets url (web path) and goes to that. If this isn't how it supposed to work and i have to enter the full path to the asset when creating the link then OK but i would have thought it should know the full path and go to it, otherwise this little feature is use less.
I'm not sure I understand the problem here. When you link to another asset within the WYSIWYG, Matrix uses an internal link code. When you view the page on the front-end, Matrix replaces this with the correct friendly URL for that asset.
Matrix selects the closest URL to the current page, therefore, it will select a URL with a matching domain name, over any alternative URL the destination asset may have.
Well i added a link to an asset say 348 (id).
the url to this asset is
http://www.address.com/news/lates news/thedocument
but when i’m viewing http://www.address.com/news/lates and i click the link in the nest content down the right it can’t find the page. But if i’m in http://www.address.com/news/lates news/ and i click the link it works.
The document is live and public have access.
The page that i’m linking to is a seet listing page if that makes any difference.
Could you look at the source of the first page to see what URL it puts into the <A> tags?
When i link to an asset listing page called despatch that is at
http://innoviaintranet/wigton/our_business/intergrated_management_systems(IMS)/opp/]http://innoviaintranet/wigton/our_business...stems(IMS)/opp/
the html behind the link is
<A href="/wigton/our_business/integrated_management_systems_(IMS)/opp/despatch">see</A>
Obvisouly when you at http://innoviaintranet/wigton/our_business/intergrated_management_systems(IMS)/opp/ it works. But if you a further down the site (cause it is nested content) then it doesn’t.
And when you click the link, it returns a 404 page? Is that the correct URL for the asset? I'd edit the Web Path for that integrated management page to remove the text in the parenthesis (though I'm not convinced that's the problem here).
Just coming back to this problem as i'm getting it again with a Latest News link i have just added.
The URL to the asset i'm linking to is:-
http://innoviaintranet/wigton/our_business/integrated_management_systems_(IMS)/cellophane/technical_process_and_quality_laboratories
To see the text for the news item i'm at url: -
http://innoviaintranet/wigton
When i click the link it works fine. If i goto: -
http://innoviaintranet/wigton/our_business
and click the link i get:-
MySource Notice
URL "innoviaintranet/wigton/wigton/our_business/integrated_management_systems_(IMS)/cellophane/technical_process_and_quality_laboratories" not foundThe news item is displayed down the right for all pages under wigton so can be clicked on at any time. When i created the link i selected the asset. How do i get it to work without having to manualy type the full url of the page?
This is a known bug with the Cache Manager and has been fixed in the latest development version of Matrix. To workaround the bug now, you need to disable the Cache Manager, at least for standard pages.
Hi Croutledge,
I'm not exactly sure if we had the same problem, but this might help…
On a lot of our pages we have nested asset listings in a right-hand column. To produce the output for the asset listing we were using the asset picker and putting %asset_href% (relative URL), e.g. <a href="%asset_href%">%asset_name%</a>, in the default format (asset listing recursive element) to create links. However, we found that once the page was nested Matrix couldn't find the assets because the relative URLs made no sense. Simply changing %asset_href% to %asset_url% (absolute URL) fixed this.
(And that's the related issue with the Cache Manager and "normal" links too. We're changing Matrix's behaviour to print full URLs instead of relative links, so that the Cache Manager caches the correct link).
[quote]
(And that's the related issue with the Cache Manager and "normal" links too. We're changing Matrix's behaviour to print full URLs instead of relative links, so that the Cache Manager caches the correct link).
[/quote]
Is it possible to change a Matrix install (3.18) back to using relative URLs? And if so does it cause Cache Manager problems?
[quote]
Is it possible to change a Matrix install (3.18) back to using relative URLs? And if so does it cause Cache Manager problems?
[/quote]
No. Matrix is hard-coded to use absolute URLs for all system-generated URLs.