21281 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 218 Views |
-
issue with redirect after email send function

11 October 2011 at 12:26am
Hi everyone
Director::redirect(Director::baseURL(). $this->URLSegment . "/?success=1");
org URL is: /england/south/test-hotel/
the redirected url is /test-hotel/
How do I get the full url instead of the segment? I think its a problem with $this->URLSegment
Thanks.
-
Re: issue with redirect after email send function

11 October 2011 at 2:49am
$this->URLSegment will only get you 'test-hotel', $this->Link() should get you '/england/south/test-hotel/', as in:
Director::redirect($this->Link() . '?success=1');
| 218 Views | ||
|
Page:
1
|
Go to Top |

