URL Parameter in Web ContentURL Parameter in Web Contenthttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1116258782024-03-29T06:12:55Z2024-03-29T06:12:55ZRE: URL Parameter in Web ContentAndrew Jardinehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1116430642018-11-22T18:38:43Z2018-11-22T18:38:43Z<p>In the absense of a better way to do it, you could use the following
code I think --</p>
<p> </p>
<pre>
<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
<#assign httpServletRequest = serviceContext.getRequest()/>
</pre>
<p> </p>
<p>That will give you the real request object. From there you should be
able to use the portalUtil to get the original request object, query
string and all. Out of curiosiy though, how are you linking to the
page? and how is the GUID determined? If it something that is
consistent, then it might be better to use a service to pull it from
storage rather than use the approach I listed above. </p>Andrew Jardine2018-11-22T18:38:43ZURL Parameter in Web ContentJason Roscoehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1116258772018-11-21T12:37:43Z2018-11-21T12:37:43Z<p>We are using Liferay DXP 7.0 and I was wondering if it is possible to
have some web content on a page, that gets a URL parameter and appends
that to a URL in our content. For example, lets say we havea page
that has the below web content on the page:</p>
<p> </p>
<p>Click here to go to our partner site.</p>
<p> </p>
<p>When you intially come to the page, you would come to it with a guid
in the URL, like www.xyz.com?guid=12345. In the web content above,
I would like the "Click here" to be an actual link to
another site (www.abc.com?guid=12345), and we pass the guid that was
in our original page url.</p>
<p>Does anyone know how c