XH 1.5.7: Location Headers

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Posts: 13522
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE

XH 1.5.7: Location Headers

Post by cmb » Tue Mar 26, 2013 6:04 pm

Hello Community,

in http://cmsimpleforum.com/viewtopic.php?f=6&t=5969 a problem regarding the relocation after saving the editor content was reported. This is most likely related to the fact, that the location header was not specified as absoluteURI as specified by RFC 2616, section 14.30, but as relative path (cf. http://cmsimple.org/forum/viewtopic.php ... =197&p=318).

This should be fixed in XH 1.5.7 (as the relocation was introduced in 1.5, no changes are necessary for 1.1.x and 1.4.x).

This relocation is the only one in the core and pluginloader; the relocation in Pagemanager uses an absolute URI; the one in page_params just uses the input value, what I consider okay for simplicity (these redirects might often point to external sites using an absolute URL anyway; however, documenting the issue seems to be appropriate).

Furthermore I suggest to use the "303 See Other" response code for such relocations instead of the default "302 Found" (see RFC 2616, section 10.3.3f).

Last edited by cmb on Tue Oct 01, 2013 10:46 pm, edited 1 time in total.
Reason: added Link to RFC 2616
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply