You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
{path} tag outputs incorrectly if {current_path:url_encode} exists within same template #3543
I believe this might be related. We're releasing 7.4.3 today with a fix. If you want to give it a try now, here's pre-release (or just make this change)
I believe this might be related. We're releasing 7.4.3 today with a fix. If you want to give it a try now, here's pre-release (or just make this change)
Hmm, the small change on it's own doesn't seem to have fixed it.
what other extensions do you have? Does it happen if you place JUST these variables in template, or they need to be inside exp:channel:entries or other tag?
It appears that the URL Helper extension overrides certain variables which causes issues with the {path} tag. Specifically, the variable "path" is put into ee()->config->_global_vars which overrides the tag. This is only happening since EE 7.3.3 so something has changed which allows this to happen.
URL Helper appears to allow for variable prefixes set within the config which should resolve this issue. Though overall, allowing the path variable/tag to be overridden may cause some issues where think it should be protected from this in some way.
Activity
intoeetive commentedon Jun 19, 2023
@ignetic are you using Structure on this site as well?
ignetic commentedon Jun 19, 2023
Yes I am. Though the issue still exists on non-structure pages.
intoeetive commentedon Jun 19, 2023
I believe this might be related. We're releasing 7.4.3 today with a fix. If you want to give it a try now, here's pre-release (or just make this change)
ignetic commentedon Jun 19, 2023
Hmm, the small change on it's own doesn't seem to have fixed it.
intoeetive commentedon Jun 19, 2023
Hm, might be something else then :(
what other extensions do you have? Does it happen if you place JUST these variables in template, or they need to be inside
exp:channel:entriesor other tag?ignetic commentedon Jun 19, 2023
I have a whole load of extensions on this site. Perhaps I could test this on a more bare bones install.
it happens with just these variables in a template on their own, example:
{current_path:url_encode} | {path='blog/content'}Also realised this happens with any modifier on current_path e.g. {current_path:encrypt}
intoeetive commentedon Jun 19, 2023
I'm not replicating this on clean install, so it's likely related to either some extension or something in your routing / settings.
ignetic commentedon Jun 19, 2023
I think so too. Just running through all extensions to narrow it down
ignetic commentedon Jun 19, 2023
More precisely, I found this to be the issue when {current_path:url_encode} inside a condition:
... still looking into which extension may be causing this ...
ignetic commentedon Jun 19, 2023
Found it; looks like Url_helper_ext causes the issue. It is only since EE version 7.3.3. Looking deeper into it now
ignetic commentedon Jun 19, 2023
It appears that the URL Helper extension overrides certain variables which causes issues with the {path} tag. Specifically, the variable "path" is put into ee()->config->_global_vars which overrides the tag. This is only happening since EE 7.3.3 so something has changed which allows this to happen.
I'm using the latest version of URL Helper here https://github.com/litzinger/URL-Helper/tree/master.
URL Helper appears to allow for variable prefixes set within the config which should resolve this issue. Though overall, allowing the path variable/tag to be overridden may cause some issues where think it should be protected from this in some way.
ignetic commentedon Jun 19, 2023
The EE 7.3.4 update seems to have fixed the issue now :)
intoeetive commentedon Jun 20, 2023
Happy to hear you don't have the issue with new release!