ZenphotoCMS Forum
printParentBreadcrumb() after a search - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: printParentBreadcrumb() after a search (/thread-10259.html)



printParentBreadcrumb() after a search - binoyte - 2012-08-01

In my template image.php, printParentBreadcrumb() send me wrong link after a search.

http://127.0.0.1/zp/index.php?p=search& amp;words=foo
(without the space)

instead of

http://127.0.0.1/zp/index.php?p=search&words=foo

What is wrong ?




printParentBreadcrumb() after a search - acrylian - 2012-08-01

Where is the difference between those?




printParentBreadcrumb() after a search - binoyte - 2012-08-01

& or & amp; are not equivalent in an URL (I guess)

the link
/zp/index.php?p=search& amp;words=foo

print an empty search page, whereas the link
/zp/index.php?p=search&words=foo
prints results in search page.

[edit] of course this append only if I don't use the mode rewrite.




printParentBreadcrumb() after a search - sbillard - 2012-08-01

This is a bug. We will get a fix in the next nightly build.




printParentBreadcrumb() after a search - acrylian - 2012-08-02

@binoyte: Just to add, when I answered there was not & in the examples, that's why I asked.




printParentBreadcrumb() after a search - binoyte - 2012-08-02

OK thanks guys.

@acrylian : no problem. The forum has converted automatically &amps to &, and there is no preview function.




printParentBreadcrumb() after a search - acrylian - 2012-08-02

Yep, you have to escape code so it does not do this.