contao/test — Issue #655: Redirect or JumpTo a page which is in another capture domain does not add the domain in the URL
Author: importer
Created: 2011-11-28 17:12:10+00:00
State: open
Labels: Feature, framework

I've run into a problem with $this->jumpToOrReload()

This function theoretically should jump to a page, even if its located in another capture domain.

Example:
Existing site is www.thyon.com. I'm writing a module that redirects the user to another page as a page on a second ROOT called iPhone, when it detects an iPhone device. When you provide the JumpTo ID to the function, it doesn't prefix the root's capture domain (Domain name in the page edit screen) into the URL. The function just assumes the page is located on the TOP root and adds the www.thyon.com domain, instead of the configured iphone.thyon.com.

This is also true when you try to click on the "page icon", and because it doesn't prefix the page alias with the domain, it generates a 404, page not found as well.

In my case, I want to place a module where you select the JumpTo page in another domain (another root with a page for the iPhone special edition). The jumpTo should automatically be aware of the correct domain of that page.

--- _Originally created by thyon on April 15th, 2009, at 01:34pm (ID 655)_