tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/406-cross-site-liking-outputting-incorrect-urlCascade CMS: Discussion 2013-08-20T03:54:23Ztag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T16:37:40Z2011-11-09T16:37:40Zcross-site linking outputting incorrect URL<div><p>I just discovered the same thing is happening within a
stylesheet I have on Site B, that is referencing an image located
in Site A (the image is actually rendering in cascade, but the URL
gets output with an additional preceeding slash once
published).</p>
<pre>
<code>div.video div.controls {
background: url('[system-asset]site://_chapman_common/assets/images/site/play_small.png[/system-asset]') 0 0;
}</code>
</pre></div>Rory Reifftag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T16:42:55Z2011-11-09T16:42:55Zcross-site linking outputting incorrect URL<div><p>Just an idea -- do both of these sites have a proper Site URL
set in the Site Management screen? Especially the one that actually
houses the assets?</p></div>Lee Roberson (Function Digital LLC)tag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T16:45:43Z2011-11-09T16:45:43Zcross-site linking outputting incorrect URL<div><p>The URL I have set for both is '/' - should that be something
else? I was setting up each site with that URL, then structuring
the folders in each site to match up as if I was publishing
everything from the root down (i.e. if I have a site for /dayone,
the URL I set is '/' then in that site I have a 'dayone' folder
that contains all my folders and pages.</p></div>Rory Reifftag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T16:49:46Z2011-11-09T16:49:46Zcross-site linking outputting incorrect URL<div><p>Ah, try just putting your domain in there then.</p>
<p>Also, it's not enforced by the user interface, but you need to
make sure for various reasons that the URL entered in that field
doesn't end with slash because that can cause some issues (in your
case, it just put an extra slash at the beginning of the rewritten
path).</p>
<p>Plug your primary domain into there, e.g. <a href=
"http://www.school.edu">http://www.school.edu</a> and then the
rewriter will write the link as <a href=
"http://www.school.edu/assets/css/jquery">http://www.school.edu/assets/css/jquery</a>...</p>
<p>In cases where you have multiple staging servers you can get the
correct paths to output by setting a URL on the each Destination,
too (this is available in a recent release of Cascade Server). This
helps your pages that go to your test destination only publish with
the paths to the dest destination CSS and Javascript, etc.</p></div>Lee Roberson (Function Digital LLC)tag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T16:52:00Z2011-11-09T16:52:00Zcross-site linking outputting incorrect URL<div><p>Ah - okay. That would make sense. Thanks so much Lee!</p></div>Rory Reifftag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T16:57:51Z2011-11-09T16:58:09Zcross-site linking outputting incorrect URL<div><p>One quick thing - would that be entered into the 'Web URL' field
of each Destination? Because I did enter '<a href=
"http://cuv-corws01.chapman.edu">http://cuv-corws01.chapman.edu</a>'
into my destination in that field, and it still published the page
with <a href="http://chapman.edu">http://chapman.edu</a> for the
URLs</p></div>Rory Reifftag:help-archives.hannonhill.com,2010-02-09:Comment/112701052011-11-09T17:12:06Z2011-11-09T17:12:06Zcross-site linking outputting incorrect URL<div><p>You might have to ask support about that -- cross-site linking
to assets might only use the Site URL field and not the Destination
URLs.</p></div>Lee Roberson (Function Digital LLC)tag:help-archives.hannonhill.com,2010-02-09:Comment/112701052012-06-14T20:47:49Z2012-06-14T20:47:49Zcross-site linking outputting incorrect URL<div><p>Apologies for the late response.</p>
<p>You are correct Lee, cross-site linking uses the Site URL
field.</p>
<p>Cascade 6.10 introduced the Web URL field for Destinations which
allows you to perform <a href=
"http://www.hannonhill.com/kb/Linking/index.html#link-rewriting-using-destination-urls">
link rewriting using Destination URLs</a>. When specified, this
field overrides the Site's URL (see previous link for more
information).</p>
<p>If you have additional questions please let us know.</p></div>Ryan Griffith