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: Unhelpful changes to User form return URL when form rendered

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

Gavin @ JCOGS

Jul 05, 2019

Sorry for quasi-duplicate posting.  But wanted to update original question after doing some diagnostic work to understand issue with eeHarbour / Jace but for unknown reason edits not being accepted.
***
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)

It’s a holiday weekend so it’ll be a few days before I can investigate this, but I have a feeling the ignore parameter on the form tag is what you’re looking for. Take a look at the Publisher docs.

#2

Gavin @ JCOGS

Thanks for the speedy feedback.
Adding

data-publisher-ignored="yes"

to the User tag did indeed fix the issue. Huzzah! Hope you have a great holiday weekend.

Login to reply