Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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
$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');