Odd issue with portal headEnd

I am trying to add some code to the edn of the HEAD section. This normally works fine but when I do this its adding it to the BODY instead when published.

@portal(headEnd, includeOnce: true)
<?php if (function_exists('sl_registerformhead')) sl_registerformhead(152,false); ?>
@endportal

I know its unusual but it should be valid as the PHP is actually renderign the head code required when it is run.

Any ideas on how to solve that?

Hmmm, that is strange and really shouldn’t be happening :thinking:
Can you put this into a little example project? Will make it super quick to get to the bottom of and fix!

Hi Dan,

I tried to send provately but it gave me an error. Nothing useful to anyone else in this anyway!

Thanks for looking at this. Here is a link to a very simple example. The code is in the testcomp component which is on the home page. Doesn’t actually show anything as I stripped everything out to keep it simple.

elementsapp://downloadDocument/UnY8zrSVusjE

Perfect, thanks for this. We’ll dig in and see what’s going on!

@vibralogix this should be fixed in Today’s build :sweat_smile:

1 Like

That’s great. Thanks Dan