<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Relative Root URL&#039;s</title>
		<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls</link>
		<description>Gravity Support Forums Topic: Relative Root URL&#039;s</description>
		<language>en-US</language>
		<pubDate>Fri, 24 Apr 2026 04:50:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/relative-root-urls" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-119530</link>
			<pubDate>Fri, 11 Jan 2013 12:53:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">119530@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome.  I will let the development team know this worked for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snapshot on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-118749</link>
			<pubDate>Thu, 10 Jan 2013 19:03:51 +0000</pubDate>
			<dc:creator>snapshot</dc:creator>
			<guid isPermaLink="false">118749@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris, that does the trick!&#60;/p&#62;
&#60;p&#62;Here's what I ended up with in case it helps someone else (in functions.php):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_upload_path&#38;quot;, &#38;quot;change_upload_path&#38;quot;, 10, 2);
function change_upload_path($path_info, $form_id){
   $path_info[&#38;quot;path&#38;quot;] = &#38;quot;wp-content/uploads/gravity_forms/&#38;quot;;
   $path_info[&#38;quot;url&#38;quot;] = &#38;#39;http://&#38;#39;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].&#38;quot;/wp-content/uploads/gravity_forms/&#38;quot;;
   return $path_info;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now the paths are pushed into the DB with the absolute URL path and they work correctly in the admin emails (URLs are specific to the server they are uploaded on now which is less ideal, but they work).&#60;/p&#62;
&#60;p&#62;I appreciate your time and help finding this solution.&#60;/p&#62;
&#60;p&#62;Cheers!&#60;br /&#62;
Cameron
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-118652</link>
			<pubDate>Thu, 10 Jan 2013 14:24:02 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">118652@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The suggestion from the development team was to use the gform_upload_path to change the URL and path of the Gravity Forms uploads &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_upload_path&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-117798</link>
			<pubDate>Wed, 09 Jan 2013 16:21:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">117798@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have not heard anything back from the developers.  Let me ask them again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snapshot on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-117785</link>
			<pubDate>Wed, 09 Jan 2013 16:02:18 +0000</pubDate>
			<dc:creator>snapshot</dc:creator>
			<guid isPermaLink="false">117785@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, any thoughts / ideas on this from GF team?&#60;/p&#62;
&#60;p&#62;Thanks for all your help!&#60;br /&#62;
Cameron
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snapshot on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-116233</link>
			<pubDate>Mon, 07 Jan 2013 18:04:45 +0000</pubDate>
			<dc:creator>snapshot</dc:creator>
			<guid isPermaLink="false">116233@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sound great, thanks Chris!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-115690</link>
			<pubDate>Mon, 07 Jan 2013 01:26:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">115690@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;My understanding of WP_CONTENT_URL is that it is a full URL, not a relative path:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Constants&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Constants&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I can understand why you're using it like you do, but your use of it is not common (to me, here, anyway) and is the first time a Gravity Forms user has mentioned it in these forums that I can recall.  I'll bring this to the attention of the development team for their thoughts.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snapshot on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-115679</link>
			<pubDate>Mon, 07 Jan 2013 01:02:12 +0000</pubDate>
			<dc:creator>snapshot</dc:creator>
			<guid isPermaLink="false">115679@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris, I will give that a shot, it's not ideal because it would still bake the URL into the file upload reference so testing uploads on a dev environment would cause the wrong URL to be linked on the live environment.&#60;/p&#62;
&#60;p&#62;Just to be clear also, it's actually not the root relative urls plugin at all, but the&#60;br /&#62;
define('WP_CONTENT_URL', '/wp-content');&#60;br /&#62;
in the functions.php that is causing GF to not absolutely link the URL's correctly (in email only, relative reference is fine in the backend for file downloads). Most users don't touch it, but some may want to redefine the location of that folder to name it simply &#34;content&#34; or &#34;_web_contents&#34; (to put it at the top of directory in sort by name) using that WP_CONTENT_URL constant. It seems that GF should account for this in how it creates the links for the email notifications to handle these standard WP config settings.&#60;/p&#62;
&#60;p&#62;I even tried a plugin that pushes all files uploaded through WP media uploads to Amazon S3 and those all work correctly, but not GF uploads; so I presume GF uploads are handled differently than the default WP upload methodology.&#60;/p&#62;
&#60;p&#62;Is there no other way to manipulate the email messages sent by GF than hack at core files? (it would be much easier to edit the message output than modify and deal with absolute URL's and adding pre-submission filters to each file upload field.) Plus this would keep things more server agnostic.&#60;/p&#62;
&#60;p&#62;Thanks for all your help!&#60;br /&#62;
Cameron&#60;/p&#62;
&#60;p&#62;P.S. if I were to take the time to figure out how to setup the url replacements in a WP and GF friendly fashion would you consider reviewing the code for potential future use? I'm sure others would see benefit from this as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-114988</link>
			<pubDate>Sun, 06 Jan 2013 02:06:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">114988@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've never heard of another Gravity Forms user using the root relative plugin for development.   You can use the gform_pre_submission_filter to manipulate the data before the entry is stored:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snapshot on "Relative Root URL&#039;s"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/relative-root-urls#post-113320</link>
			<pubDate>Thu, 03 Jan 2013 21:08:32 +0000</pubDate>
			<dc:creator>snapshot</dc:creator>
			<guid isPermaLink="false">113320@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;On further inspection I found that it was not actually the core root relative urls plugin that was causing the issue (I disabled and even deleted it).&#60;/p&#62;
&#60;p&#62;I am dynamically setting the content URL in wp-config.php with the following:&#60;br /&#62;
define('WP_CONTENT_URL', '/wp-content');&#60;/p&#62;
&#60;p&#62;This works great with all images and files (and requires and such) but causes issues with the GF forms notifications because it is saving as:&#60;br /&#62;
/wp-content/uploads/gravity_forms/1-acc4bf57bc9efeed64d056171a8e757b/2013/01/filename.pdf&#60;/p&#62;
&#60;p&#62;Do you have an example of a hook that I can reference that manipulates the form data prior to saving to the database so that I can change the URL of the file that gets saved to wp_rg_lead_detail?&#60;/p&#62;
&#60;p&#62;Thanks for your help, I assume this is something others have encountered as using relative urls is pretty important in having a development environment.&#60;/p&#62;
&#60;p&#62;Cameron
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
