[TYPO3-dev] Typoscript: respect url_scheme in menu

Philipp Wrann philippwrann at gmail.com
Thu Feb 5 14:14:01 CET 2015


That did not work, the links where allways generated with the baseURL/absRefPrefix in front, so allways https, regardless of the url_scheme setting.

The approach typo3 seems to use is to make a redirect.

That would work when only requesting pages statically, but i have a navigation pattern, that works with ajax. So a redirect does not work.

I solved this now in a very stupid and dirty way, i placed a javascript location rewrite on all that which need the http protocol.

In http context i cant make a request to https via ajax so i had to disable the ajax request additionally if the requested link is not of the same protocol as the current.

That would work better if typo3 would render the protocol in the a tags href attribute - but it doesnt.



More information about the TYPO3-dev mailing list