[TYPO3-core] RFC: Bug #13861: Opening website frontend view from backend does not work properly

Oliver Hader oliver at typo3.org
Thu Mar 18 17:51:40 CET 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=13861

Branch: Trunk

Problem:
The view icon in the backend to open a specific page of the website
frontend does not work properly:
1) If the current backend domain (e.g. editor.mydomain.com) is not
configured in sys_domain but another domain is defined for the current
page to be view - the more specific domain is not used at all
2) If a specific domain is used for a page to be viewed and TYPO3 is
installed in a sub-directory, this sub-directory is not considered at all

Solution:
* remove the t3lib_BEfunc::firstDomainRecord() check
* check whether there is a more specific domain name for the page to be
viewed and use it if there is one
* add the path segment (e.g. /subdir/) if TYPO3 was installed in a
sub-directory

Notes:
I renamed the accordant method from getViewDomain() to
getViewUrlPrefix() since it does more than just return a domain name.
The method was introduced with TYPO3 4.4-alpha1 and thus can still be
changed. Besides that I corrected the PHPdoc comments of that method.
The patch for RFC #9508 which is still pending has to be adjusted as well.

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013861.patch
Type: text/x-patch
Size: 1870 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100318/0f3c224d/attachment.bin>


More information about the TYPO3-team-core mailing list