<?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: Use relative path when redirect</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect</link>
		<description>Gravity Support Forums Topic: Use relative path when redirect</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:41:56 +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/use-relative-path-when-redirect" rel="self" type="application/rss+xml" />

		<item>
			<title>kingjeffrey on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-71081</link>
			<pubDate>Tue, 14 Aug 2012 18:47:19 +0000</pubDate>
			<dc:creator>kingjeffrey</dc:creator>
			<guid isPermaLink="false">71081@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Relative redirects would be very nice. My situation is not as unique. I develop websites on a development server (with a different domain than the final location). If I hard code the domain, I have to remember to change each redirect location every time I push a code update to the live server. It would be MUCH easier if I was allowed to enter '/redirect-location' instead of 'http://example.com/redirect-location'.&#60;/p&#62;
&#60;p&#62;Please consider adding this feature.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-66145</link>
			<pubDate>Fri, 13 Jul 2012 13:03:11 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">66145@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You are using the same form, but they show up on different URLs, so what if using our gform_pre_render hook, you grabbed the current URL, parsed out the &#34;folder&#34; if it exists, and use that to build your redirect URL? &#60;/p&#62;
&#60;p&#62;So on load, check current URL, explode by &#34;/&#34; grab the last part, put that value in a hidden field, and then use that value to make your redirect?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finddarkpoet on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-66138</link>
			<pubDate>Fri, 13 Jul 2012 12:47:00 +0000</pubDate>
			<dc:creator>finddarkpoet</dc:creator>
			<guid isPermaLink="false">66138@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;First of all, I'm using the very same form for all languages, translated with WPML. Let's say my form is on home page, it will be:&#60;/p&#62;
&#60;p&#62;English:&#60;br /&#62;
domain.com&#60;br /&#62;
Spanish:&#60;br /&#62;
domain.com/es/&#60;br /&#62;
Chinese:&#60;br /&#62;
domain.com/zh-hans/&#60;/p&#62;
&#60;p&#62;Which means the language slug is already included in the url.&#60;/p&#62;
&#60;p&#62;Since I'm using the same form for all languages, the form can not determine what language currently it's using. And I can only set one confirmation redirect.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-66134</link>
			<pubDate>Fri, 13 Jul 2012 12:14:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66134@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is the language portion of the url (slug) available in the page you're on?  Could you store it in a hidden field on the form (&#34;language&#34;) and then use that in your confirmation redirect?  So you might have a hidden &#34;language&#34; field and it would be pre-populated with &#34;zh-hans&#34; in the case of Chinese?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finddarkpoet on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-66077</link>
			<pubDate>Fri, 13 Jul 2012 07:00:41 +0000</pubDate>
			<dc:creator>finddarkpoet</dc:creator>
			<guid isPermaLink="false">66077@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry for the late reply.&#60;/p&#62;
&#60;p&#62;The idea is to use the form to perform a simple search function.&#60;/p&#62;
&#60;p&#62;For example, I have already created pages and the permalinks are like this:&#60;/p&#62;
&#60;p&#62;domain.com/chest-pain-clinic-doctors.html&#60;br /&#62;
domain.com/general-cardiology-doctors.html&#60;/p&#62;
&#60;p&#62;So, in the form, I have created a dropdown field, admin label is &#34;department&#34;, with choices like &#34;Chest pain clinic doctors&#34;, and set value as &#34;chest-pain-clinic-doctors&#34;, in the confirmation setting, I set the redirection to:&#60;br /&#62;
&#60;a href=&#34;http://domain.com/&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/&#60;/a&#62;{department:1:value}.html&#60;br /&#62;
when it's selected and click on the submit button, the page redirects to domain.com/chest-pain-clinic-doctors.html, it works perfectly.&#60;/p&#62;
&#60;p&#62;My problem is, I have the same pages for multiple languages, take Spanish for example, the aforementioned urls will become:&#60;/p&#62;
&#60;p&#62;domain.com/es/chest-pain-clinic-doctors.html&#60;br /&#62;
domain.com/es/general-cardiology-doctors.html&#60;/p&#62;
&#60;p&#62;For Chinese, they will become:&#60;/p&#62;
&#60;p&#62;domain.com/zh-hans/chest-pain-clinic-doctors.html&#60;br /&#62;
domain.com/zh-hans/general-cardiology-doctors.html&#60;/p&#62;
&#60;p&#62;So of course, absolute url like this &#60;a href=&#34;http://domain.com/&#34; rel=&#34;nofollow&#34;&#62;http://domain.com/&#60;/a&#62;{department:1:value}.html won't work.&#60;/p&#62;
&#60;p&#62;Is this information enough?&#60;/p&#62;
&#60;p&#62;Best regards,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-64543</link>
			<pubDate>Tue, 03 Jul 2012 11:08:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">64543@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure.  Can you give me some example data to go with, and some rules.  Rules which mimic your admin routing.  Something like&#60;/p&#62;
&#60;p&#62;If the choice is &#34;whatever&#34; then send the email to &#34;this address&#34;&#60;br /&#62;
AND&#60;br /&#62;
include this information in the notification to the user.&#60;/p&#62;
&#60;p&#62;If we start with that I should be able to point you in the right direction.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finddarkpoet on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-64479</link>
			<pubDate>Tue, 03 Jul 2012 00:16:51 +0000</pubDate>
			<dc:creator>finddarkpoet</dc:creator>
			<guid isPermaLink="false">64479@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;Thanks for the tips. The first option sounds great. I'm not really a code person, can you shed some light on how to use the filter.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-64391</link>
			<pubDate>Mon, 02 Jul 2012 12:05:38 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">64391@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You have a unique situation which might require a unique solution.  You could handle the redirect in your theme's functions.php.  You can rewrite the redirect URL based on whether you need a relative or absolute URL.  You would use the gform_confirmation filter:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The logic and code to determine the URL is up to you.  But then use the gform_confirmation filter to set that URL.&#60;/p&#62;
&#60;p&#62;That is one approach.&#60;/p&#62;
&#60;p&#62;The other approach would be to send something in the query string, then have a template hold the logic for your redirect.  I like the first option better, but we can explore this option as well if you like.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finddarkpoet on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-64390</link>
			<pubDate>Mon, 02 Jul 2012 11:53:06 +0000</pubDate>
			<dc:creator>finddarkpoet</dc:creator>
			<guid isPermaLink="false">64390@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David, I'm using WPML for translations.&#60;/p&#62;
&#60;p&#62;Any workaround?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Use relative path when redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-relative-path-when-redirect#post-64325</link>
			<pubDate>Mon, 02 Jul 2012 08:38:31 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64325@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms can't do relative redirects, and I am not certain how you can easily grab/use the multi-language code as part of the redirect. What plugin are you using for your translations?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
