[
http://jira.jboss.com/jira/browse/JBSEAM-2144?page=comments#action_12385923 ]
Magnus Sandberg commented on JBSEAM-2144:
-----------------------------------------
I can reproduce this, stepping through LinkRenderBase->ViewUrlBuilder.
on line 28 in ViewUrlBuilder:
encodedUrl = Pages.instance().encodeScheme(viewId, facesContext, encodedUrl);
the encodedUrl becomes absolute - this is due to that encodeScheme() actually does create
an absolute url.
Should the link really be rendered absolute?
s:link builds absolute path URL with private IP address
-------------------------------------------------------
Key: JBSEAM-2144
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2144
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.CR1
Environment: the same on windows/linux with jboss 4.2.1
Reporter: koen handekyn
Assigned To: Pete Muir
link to view "/example.xhtml" becomes
"http://10.0.0.1:8080/example.seam" (including private server address and
protocol) which breaks when run behind an apache proxy
from my code: <li><s:link view="/mobistar/portal.xhtml"
value="portal" /></li>
becomes rendered as
<li><a
href="http://localhost:8080/up-docstore/mobistar/portal.seam?cid=44"
id="j_id15">portal</a></li>
while it should be
<li><a href="/up-docstore/mobistar/portal.seam?cid=44"
id="j_id15">portal</a></li>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira