Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Trying to understand unhelpful behaviour that occurs using Publisher with User add-on…

Status Resolved
Add-on / Version Publisher 2.10.8 build e9838c43
Severity
EE Version 5.2.4

Gavin @ JCOGS

Jul 05, 2019

Working on relatively simple development site that uses Publisher and also the User add-on.

Currently Publisher is configured with two languages, and the site implements translations via the phrases tag - there are no alternative entry translations set up right now.

The language of the currently used language appears in the URL as per typical configuration - e.g.

https://example.com/en/some_slug

I have encountered an error when using the User “forgot password” form - but have (working with Jace at eeHarbor) demonstrated that the error does not appear if Publisher is disabled as add-on, and does appear when it is even if there are no publisher tags in the template.

The test template is at this location: https://pluq.jcogs.net/en/site/publisher-form-test

The “forgot password” tag in the template looks like this:

{exp:user:forgot_password
    return="site/login?r"
}
stuff
{/exp:user:forgot_password}

When this tag is rendered it generates an html form.

When Publisher is disabled the form renders the `hiddenFields` div like this:

<div class="hiddenFields">
<input type="hidden" name="ACT" value="64">
<input type="hidden" name="RET" value="https://pluq.jcogs.net/site/login?r">
<input type="hidden" name="params_id" value="305">
<input type="hidden" name="site_id" value="1">
<input type="hidden" name="csrf_token" value="77b32d00db8d6a2ed6379fd8f665a185dc7c5c59">
</div>

When Publisher is enabled it renders the same `hiddenFields` div like this:

<div class="hiddenFields">
<input type="hidden" name="ACT" value="64">
<input type="hidden" name="RET" value="en/site/forgot-password/">
<input type="hidden" name="params_id" value="306">
<input type="hidden" name="site_id" value="1">
<input type="hidden" name="csrf_token" value="77b32d00db8d6a2ed6379fd8f665a185dc7c5c59">
</div>

Somehow Publisher is changing the value of the RET input in the form.

When this RET field is acted upon it causes the language slug on the return page to be duplicated - and the return page to go to the wrong page.  The return URL if the form is submitted when Publisher is active is:

https://pluq.jcogs.net/en/en/site/forgot-password/

It would be really helpful if there was a way to stop Publisher making these changes to the form return URL.

Any suggestions would be most valuable.

Thanks!

 

#1

BoldMinded (Brian)

Closing, duplicate of https://boldminded.com/support/ticket/1990

Login to reply