<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Web Proxy Portlet Relative Paths</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=2328477" />
  <subtitle>Web Proxy Portlet Relative Paths</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=2328477</id>
  <updated>2026-05-14T17:22:01Z</updated>
  <dc:date>2026-05-14T17:22:01Z</dc:date>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2623960" />
    <author>
      <name>Eric Devlin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2623960</id>
    <updated>2009-03-26T03:58:09Z</updated>
    <published>2009-03-26T03:58:09Z</published>
    <summary type="html">Jeff, &lt;br /&gt;  Having internal servers behind the firewall with their content proxied by liferay is exactly how we are using it.  Generally, I&amp;#39;ve had pretty good luck with the portlet bridge, but it&amp;#39;s not a magic bullet.  It helps to understand the site you are proxing and portlet bridge.&lt;br /&gt;&lt;br /&gt;  I think the patch on this page should handle the relative link problem.  I&amp;#39;ve posted other patches to deal with 1) servlet renamed to pbhs instead of PortletBridgeServlet leading to incorrect css url refs 2) input stream being unavailable on a post 3) removing stylesheet entries which conflict with liferay e.g. body | .portlet&lt;br /&gt;&lt;br /&gt;  If you&amp;#39;ve got javascript variables with urls you&amp;#39;ll need something like the below.&lt;br /&gt;&lt;br /&gt;&amp;lt;xsl:template match=&amp;#34;/HTML/BODY&amp;#34;&amp;gt;&lt;br /&gt;&amp;lt;DIV&amp;gt;&lt;br /&gt;&amp;lt;xsl:attribute name=&amp;#34;class&amp;#34;&amp;gt;&lt;br /&gt;&amp;lt;xsl:value-of select=&amp;#34;@class&amp;#34;/&amp;gt;&lt;br /&gt;&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;&amp;lt;xsl:apply-templates select=&amp;#34;node()&amp;#34;/&amp;gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;&amp;lt;xsl:text&amp;gt;jshref = &amp;#34;&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&amp;#34;bridge:link($bridge, $base, &amp;#39;/blah/blah.html&amp;#39; )&amp;#34;/&amp;gt;&amp;lt;xsl:text&amp;gt;&amp;#34;;&amp;lt;/xsl:text&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/DIV&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;SCRIPT&amp;gt;&lt;br /&gt;&amp;lt;xsl:value-of select=&amp;#34;@onload&amp;#34;/&amp;gt;&lt;br /&gt;&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;Eric</summary>
    <dc:creator>Eric Devlin</dc:creator>
    <dc:date>2009-03-26T03:58:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2619473" />
    <author>
      <name>Jeff McCrumb</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2619473</id>
    <updated>2009-03-25T16:32:30Z</updated>
    <published>2009-03-25T16:32:30Z</published>
    <summary type="html">I&amp;#39;m trying to use Liferay&amp;#39;s WebProxy portlet to allow Liferay to controlled access to our MediaWiki internal Application.  Liferay is on the public Internet, user&amp;#39;s log into it, and then with WebProxy we would like them to have access to the MediaWiki just like they would on the company internal network.  We have additional internal applications we would also like to expose this way.&lt;br /&gt;&lt;br /&gt;    Is WebProxy being used sucessfully this way, or are other methods being used? (I don&amp;#39;t want to use an iFrame because I don&amp;#39;t want to expose our MediaWiki site directly on the Internet. I want to go through Liferay.)&lt;br /&gt;&lt;br /&gt;   I&amp;#39;m having problems getting this to work.  Relative links in the content don&amp;#39;t seem to be handled, and I&amp;#39;ve tried the BridgeFunctions modifications listed above with no success.  Looking at the code it appears that it only will work with fully qualified links containing http and https. Our MediaWiki has a lot of content with many relative links.  &lt;br /&gt;&lt;br /&gt;    I also tried testing with proxying google, and it only works with about 10% of the links returned from a search.    If there is more than one level on the url beyond the server reference it seems to fail with a bad syntax() error being displayed instead of the content. (I&amp;#39;m using the latest Liferay 5.2.2, and the webproxy bundled with it.) &lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;   Do you normally need to modify the xsl extensively? Do you need to modify the portletbridge?  Any sample xsl that does work with google I can study?</summary>
    <dc:creator>Jeff McCrumb</dc:creator>
    <dc:date>2009-03-25T16:32:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2539633" />
    <author>
      <name>Eric Devlin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2539633</id>
    <updated>2009-03-18T13:36:02Z</updated>
    <published>2009-03-18T13:36:02Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Brian Abston:&lt;/div&gt;&lt;blockquote&gt;@Eric - What do I have to do to make this change? Do I have to download the source, make the change and jar it up?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Brian&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;That&amp;#39;s exactly what you have to do.  This &lt;a href="http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1100360"&gt;thread&lt;/a&gt; may provide some help.</summary>
    <dc:creator>Eric Devlin</dc:creator>
    <dc:date>2009-03-18T13:36:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2530248" />
    <author>
      <name>Brian Abston</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2530248</id>
    <updated>2009-03-17T22:15:19Z</updated>
    <published>2009-03-17T22:15:19Z</published>
    <summary type="html">@Eric - What do I have to do to make this change? Do I have to download the source, make the change and jar it up?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Brian&lt;br /&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Eric Devlin:&lt;/div&gt;&lt;blockquote&gt;I think I found a solution.  I changed BridgeFunctions&lt;br /&gt;&lt;br /&gt;from&lt;br /&gt;                String name = url.getPath();&lt;br /&gt;                int lastIndex = name.lastIndexOf(&amp;#39;/&amp;#39;);&lt;br /&gt;                if (lastIndex != -1) {&lt;br /&gt;                    name = name.substring(lastIndex + 1);&lt;br /&gt;                    if (name.equals(&amp;#34;&amp;#34;) &amp;amp;&amp;amp; lastIndex &amp;gt; 0)&lt;br /&gt;                        name = url.getPath().substring(&lt;br /&gt;                                url.getPath().lastIndexOf(&amp;#39;/&amp;#39;, lastIndex - 1));&lt;br /&gt;&lt;br /&gt;                }&lt;br /&gt;                if (name.startsWith(&amp;#34;/&amp;#34;))&lt;br /&gt;                    name = name.substring(1);&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;                String name = url.getPath();&lt;br /&gt;                if (name.startsWith(&amp;#34;/&amp;#34;))&lt;br /&gt;                    name = name.substring(1);&lt;br /&gt;                int index = name.indexOf(&amp;#39;/&amp;#39;);&lt;br /&gt;                if (index != -1)&lt;br /&gt;                    name = name.substring( 0, index );&lt;br /&gt;		if ( name.length() == 0 )&lt;br /&gt;			name = &amp;#34;hmmm&amp;#34;;&lt;br /&gt;&lt;br /&gt;it also works if you use just&lt;br /&gt;		String name = &amp;#34;hmmm&amp;#34;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Looks like name is just for appearances.&lt;/blockquote&gt;</summary>
    <dc:creator>Brian Abston</dc:creator>
    <dc:date>2009-03-17T22:15:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2491788" />
    <author>
      <name>Eric Devlin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2491788</id>
    <updated>2009-03-13T21:39:16Z</updated>
    <published>2009-03-13T21:39:16Z</published>
    <summary type="html">I think I found a solution.  I changed BridgeFunctions&lt;br /&gt;&lt;br /&gt;from&lt;br /&gt;                String name = url.getPath();&lt;br /&gt;                int lastIndex = name.lastIndexOf(&amp;#39;/&amp;#39;);&lt;br /&gt;                if (lastIndex != -1) {&lt;br /&gt;                    name = name.substring(lastIndex + 1);&lt;br /&gt;                    if (name.equals(&amp;#34;&amp;#34;) &amp;amp;&amp;amp; lastIndex &amp;gt; 0)&lt;br /&gt;                        name = url.getPath().substring(&lt;br /&gt;                                url.getPath().lastIndexOf(&amp;#39;/&amp;#39;, lastIndex - 1));&lt;br /&gt;&lt;br /&gt;                }&lt;br /&gt;                if (name.startsWith(&amp;#34;/&amp;#34;))&lt;br /&gt;                    name = name.substring(1);&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;                String name = url.getPath();&lt;br /&gt;                if (name.startsWith(&amp;#34;/&amp;#34;))&lt;br /&gt;                    name = name.substring(1);&lt;br /&gt;                int index = name.indexOf(&amp;#39;/&amp;#39;);&lt;br /&gt;                if (index != -1)&lt;br /&gt;                    name = name.substring( 0, index );&lt;br /&gt;		if ( name.length() == 0 )&lt;br /&gt;			name = &amp;#34;hmmm&amp;#34;;&lt;br /&gt;&lt;br /&gt;it also works if you use just&lt;br /&gt;		String name = &amp;#34;hmmm&amp;#34;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Looks like name is just for appearances.</summary>
    <dc:creator>Eric Devlin</dc:creator>
    <dc:date>2009-03-13T21:39:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2490297" />
    <author>
      <name>Richard W Crowe</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2490297</id>
    <updated>2009-03-13T18:31:39Z</updated>
    <published>2009-03-13T18:31:39Z</published>
    <summary type="html">Ok I was incorrect in my last post, the BridgeFunctions is being called. It now appears to me that the error is in the rewrite method. There is basically an if statement that if the url scheme is http or https do the rewrite else just return the link. The javadocs for java.net.URI indicate that “An absolute URI specifies a scheme; a URI that is not absolute is said to be relative.” So assuming that relative URIs have no scheme there should be another condition to test for absolute then based on this rewrite the URL. The challenge here however is how to append the site information to make the relative url absolute for the rewrite process.</summary>
    <dc:creator>Richard W Crowe</dc:creator>
    <dc:date>2009-03-13T18:31:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2486680" />
    <author>
      <name>Brian Abston</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2486680</id>
    <updated>2009-03-13T15:24:08Z</updated>
    <published>2009-03-13T15:24:08Z</published>
    <summary type="html">Thanks for the help Eric.&lt;br /&gt;&lt;br /&gt;Being new to Liferay I must say that I am surprised that this is an issue. I would have thought that a proxied site that uses relative links would be common.</summary>
    <dc:creator>Brian Abston</dc:creator>
    <dc:date>2009-03-13T15:24:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2484958" />
    <author>
      <name>Eric Devlin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2484958</id>
    <updated>2009-03-13T12:44:58Z</updated>
    <published>2009-03-13T12:44:58Z</published>
    <summary type="html">Brian,&lt;br /&gt;&lt;br /&gt;  If you click on the configuration icon (sprocket) in the right hand corner of the portlet, you&amp;#39;ll get the setup page.  There is a section called stylesheet.  By default it is blank.  You&amp;#39;ll have to dig a copy out from portletbridge-portlet.jar.  That should be in the *.war/WEB-INF/lib directory.  The path inside the jar for the file you want is org\portletbridge\xsl\portletbridge.xsl.  Paste in the changes above and it should get you going.  Again if you find the real fix in the code, please post it.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Eric</summary>
    <dc:creator>Eric Devlin</dc:creator>
    <dc:date>2009-03-13T12:44:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2477071" />
    <author>
      <name>Richard W Crowe</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2477071</id>
    <updated>2009-03-13T00:00:06Z</updated>
    <published>2009-03-13T00:00:06Z</published>
    <summary type="html">I am not sure the problem is in the BridgeFunctions as it does not appear that the class is being called for the URL. The site I am attempting to proxy is http://www.credoreference.com. The anchor in the html is &amp;lt;a tabindex=&amp;#34;2&amp;#34; accesskey=&amp;#34;a&amp;#34; href=&amp;#34;/advanced.do&amp;#34;&amp;gt;Advanced Search&amp;lt;/a&amp;gt;. When I proxy from http://www.capecod.edu the URL becomes http://www.capecod.edu/advanced.do which does not work. I need to figure out how to append the http://www.credoreference.com to /advance.do so that the link when proxy will work correctly.</summary>
    <dc:creator>Richard W Crowe</dc:creator>
    <dc:date>2009-03-13T00:00:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2475270" />
    <author>
      <name>Brian Abston</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2475270</id>
    <updated>2009-03-12T20:28:13Z</updated>
    <published>2009-03-12T20:28:13Z</published>
    <summary type="html">@Eric &lt;br /&gt;&lt;br /&gt;I am such a LifeRay noob. Where do I put the XSL code below? I poked around and couldn&amp;#39;t find where to put it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Eric Devlin:&lt;/div&gt;&lt;blockquote&gt;Hey,&lt;br /&gt;  I came up with a work around for your problem.  Modify the stylesheet to throw in a ? at the end of the url.  The problem is undoubtedly in the BridgeFunctions class.  If you find the real solution, please post it.&lt;br /&gt;Thanks&lt;br /&gt;Eric&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;ISO-8859-1&amp;#34;?&amp;gt;&lt;br /&gt;&amp;lt;xsl:stylesheet version=&amp;#34;1.0&amp;#34;&lt;br /&gt;   xmlns:xsl=&amp;#34;http://www.w3.org/1999/XSL/Transform&amp;#34;&lt;br /&gt;   xmlns:java=&amp;#34;java&amp;#34;&lt;br /&gt;   xmlns:bridge=&amp;#34;java:org.portletbridge.portlet.BridgeFunctions&amp;#34;&lt;br /&gt;   extension-element-prefixes=&amp;#34;bridge java&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;.....................&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;!-- Rewrite links --&amp;gt;&lt;br /&gt;   &amp;lt;xsl:template match=&amp;#34;A/@href&amp;#34;&amp;gt;&lt;br /&gt;	  &amp;lt;xsl:variable name=&amp;#34;href&amp;#34; select=&amp;#34;java:lang.String.new( string( . ) )&amp;#34;/&amp;gt;&lt;br /&gt;	  &amp;lt;xsl:variable name=&amp;#34;hmmm&amp;#34; select=&amp;#34;java:lang.String.new( string( &amp;#39;/intl/en/ads/&amp;#39; ) )&amp;#34;/&amp;gt;&lt;br /&gt;      &amp;lt;xsl:attribute name=&amp;#34;href&amp;#34;&amp;gt;&lt;br /&gt;		&amp;lt;xsl:choose&amp;gt;&lt;br /&gt;			&amp;lt;xsl:when test=&amp;#34;java:equals( $href, $hmmm )&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;xsl:value-of select=&amp;#34;bridge:link($bridge, $base, &amp;#39;/intl/en/ads/?&amp;#39; )&amp;#34;/&amp;gt;&lt;br /&gt;			&amp;lt;/xsl:when&amp;gt;&lt;br /&gt;			&amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;				&amp;lt;xsl:value-of select=&amp;#34;bridge:link($bridge, $base, .)&amp;#34;/&amp;gt;&lt;br /&gt;			&amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;		&amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;      &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;   &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;.................................&lt;/blockquote&gt;</summary>
    <dc:creator>Brian Abston</dc:creator>
    <dc:date>2009-03-12T20:28:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2475030" />
    <author>
      <name>Eric Devlin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2475030</id>
    <updated>2009-03-12T19:50:29Z</updated>
    <published>2009-03-12T19:50:29Z</published>
    <summary type="html">Hey,&lt;br /&gt;  I came up with a work around for your problem.  Modify the stylesheet to throw in a ? at the end of the url.  The problem is undoubtedly in the BridgeFunctions class.  If you find the real solution, please post it.&lt;br /&gt;Thanks&lt;br /&gt;Eric&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;ISO-8859-1&amp;#34;?&amp;gt;&lt;br /&gt;&amp;lt;xsl:stylesheet version=&amp;#34;1.0&amp;#34;&lt;br /&gt;   xmlns:xsl=&amp;#34;http://www.w3.org/1999/XSL/Transform&amp;#34;&lt;br /&gt;   xmlns:java=&amp;#34;java&amp;#34;&lt;br /&gt;   xmlns:bridge=&amp;#34;java:org.portletbridge.portlet.BridgeFunctions&amp;#34;&lt;br /&gt;   extension-element-prefixes=&amp;#34;bridge java&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;.....................&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;!-- Rewrite links --&amp;gt;&lt;br /&gt;   &amp;lt;xsl:template match=&amp;#34;A/@href&amp;#34;&amp;gt;&lt;br /&gt;	  &amp;lt;xsl:variable name=&amp;#34;href&amp;#34; select=&amp;#34;java:lang.String.new( string( . ) )&amp;#34;/&amp;gt;&lt;br /&gt;	  &amp;lt;xsl:variable name=&amp;#34;hmmm&amp;#34; select=&amp;#34;java:lang.String.new( string( &amp;#39;/intl/en/ads/&amp;#39; ) )&amp;#34;/&amp;gt;&lt;br /&gt;      &amp;lt;xsl:attribute name=&amp;#34;href&amp;#34;&amp;gt;&lt;br /&gt;		&amp;lt;xsl:choose&amp;gt;&lt;br /&gt;			&amp;lt;xsl:when test=&amp;#34;java:equals( $href, $hmmm )&amp;#34;&amp;gt;&lt;br /&gt;				&amp;lt;xsl:value-of select=&amp;#34;bridge:link($bridge, $base, &amp;#39;/intl/en/ads/?&amp;#39; )&amp;#34;/&amp;gt;&lt;br /&gt;			&amp;lt;/xsl:when&amp;gt;&lt;br /&gt;			&amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;				&amp;lt;xsl:value-of select=&amp;#34;bridge:link($bridge, $base, .)&amp;#34;/&amp;gt;&lt;br /&gt;			&amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;		&amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;      &amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;   &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;&lt;br /&gt;.................................</summary>
    <dc:creator>Eric Devlin</dc:creator>
    <dc:date>2009-03-12T19:50:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2472274" />
    <author>
      <name>Amos Fong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2472274</id>
    <updated>2009-03-12T16:57:17Z</updated>
    <published>2009-03-12T16:57:17Z</published>
    <summary type="html">While googling around, I found this ticket that may be relevant,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://issues.apache.org/jira/browse/PORTLETBRIDGE-16"&gt;https://issues.apache.org/jira/browse/PORTLETBRIDGE-16&lt;/a&gt;</summary>
    <dc:creator>Amos Fong</dc:creator>
    <dc:date>2009-03-12T16:57:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2470847" />
    <author>
      <name>Raja Nagendra Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2470847</id>
    <updated>2009-03-12T15:14:56Z</updated>
    <published>2009-03-12T15:14:56Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;The best way to handle this by rewriting all the links. However instead of rewriting the web pages directly, the web proxy should write them. When I was part of Sun Portal Team, we had a complete and dynamic rewriting of the urls by set of standard and user configurable rules.&lt;br /&gt;&lt;br /&gt;Check the following links.. which have/use the my rewriter component &lt;br /&gt;&lt;br /&gt;http://docs.sun.com/app/docs/doc/819-5070/6n768aet0?a=view&lt;br /&gt;http://www.sun.com/blueprints/0702/816-7206-10.pdf&lt;br /&gt;http://www.sun.com/books/catalog/baker.xml - This book has the more latest info (with my name too..)&lt;br /&gt;&lt;br /&gt;The following patents have more details on the same..&lt;br /&gt;&lt;br /&gt;http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&amp;amp;Sect2=HITOFF&amp;amp;u=%2Fnetahtml%2FPTO%2Fsearch-adv.html&amp;amp;r=0&amp;amp;f=S&amp;amp;l=50&amp;amp;d=PG01&amp;amp;OS=Raja+AND+Nagendra&amp;amp;RS=%28Raja+AND+Nagendra%29&amp;amp;TD=3&amp;amp;Srch1=%2528Raja+AND+Nagendra%2529&amp;amp;StartNum=&amp;amp;Refine=Refine+Search&amp;amp;Query=Raja+AND+Nagendra+AND+Kumar&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In all rewriting is a simple for ordinary pages.. However rewriting of complex pages of any product ready applications is a pain and 80 to 90% could be achieved though sun&amp;#39;s rewriting approach.&lt;br /&gt;&lt;br /&gt;Apache and Navel to has some rewriting which is based on regular expression.. but not so scalable in my view.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Raja Nagendra Kumar,&lt;br /&gt;C.T.O&lt;br /&gt;www.tejasoft.com&lt;br /&gt;nagendra.raja@tejasoft.com</summary>
    <dc:creator>Raja Nagendra Kumar</dc:creator>
    <dc:date>2009-03-12T15:14:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2468880" />
    <author>
      <name>Richard W Crowe</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2468880</id>
    <updated>2009-03-12T12:58:59Z</updated>
    <published>2009-03-12T12:58:59Z</published>
    <summary type="html">I have still not been able to track down the problem but have not had much time to dedicate to it this week. I am hoping to be able to dive into the portlet bridge code next week to trace through why these URLs are not being rewritten correctly.</summary>
    <dc:creator>Richard W Crowe</dc:creator>
    <dc:date>2009-03-12T12:58:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2468765" />
    <author>
      <name>Brian Abston</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2468765</id>
    <updated>2009-03-12T12:47:27Z</updated>
    <published>2009-03-12T12:47:27Z</published>
    <summary type="html">I am having the same problem. Did anybody ever figure out how to resolve this?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Brian</summary>
    <dc:creator>Brian Abston</dc:creator>
    <dc:date>2009-03-12T12:47:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2390718" />
    <author>
      <name>eric z</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2390718</id>
    <updated>2009-03-04T22:29:15Z</updated>
    <published>2009-03-04T22:29:15Z</published>
    <summary type="html">I am having an issue with the exact same thing. I am using the web proxy in liferay and none of my relative links work. Any help or insight would be greatly appreciated!</summary>
    <dc:creator>eric z</dc:creator>
    <dc:date>2009-03-04T22:29:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2386966" />
    <author>
      <name>Richard W Crowe</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2386966</id>
    <updated>2009-03-04T16:33:57Z</updated>
    <published>2009-03-04T16:33:57Z</published>
    <summary type="html">I have still been unable to resolve my issue with relative paths being rewritten. All hrefs that are absolute are being rewritten correctly to http://www.mydomain.com/pbhs/..... But relative paths are not. They end up as http://www.mydomain.com/relativePath. I have even tried deploying the portletbridge as separate plug-in but with the same results. Is there anyone that has the web proxy or portal bridge working? If so do you not have this issue or have you been able to fix it? Any assistance would be greatly appreciated.</summary>
    <dc:creator>Richard W Crowe</dc:creator>
    <dc:date>2009-03-04T16:33:57Z</dc:date>
  </entry>
  <entry>
    <title>Web Proxy Portlet Relative Paths</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2328476" />
    <author>
      <name>Richard W Crowe</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=2328476</id>
    <updated>2009-02-26T17:56:43Z</updated>
    <published>2009-02-26T17:56:43Z</published>
    <summary type="html">I am attempting to set up the Web Proxy portlet but am having an issue with links that use relative paths. To test I just used www.google.com. The google home page does display fine but the relative links like the “Advertising Programs” end up being linked relative to my web page instead of www.google.com. Does anyone know how to resolve this?</summary>
    <dc:creator>Richard W Crowe</dc:creator>
    <dc:date>2009-02-26T17:56:43Z</dc:date>
  </entry>
</feed>
