Where is this code located ? In "Glossary.Hello" page ?
Are you sure $newGlossaryReference contains what you expect ? Did you
print it ? If it was null you would get exactly this behavior.
On Fri, Jun 9, 2017 at 11:56 AM, Sarthak Gupta
<sarthakgupta072(a)gmail.com> wrote:
Hello all,
It's been 2 days that I am stuck in a stupid error.
I have a "add glossary" button in my application, and when I click that
button, the browser gives me the error: "This page isn’t working, 127.0.0.1
redirected you too many times."
Now this is a redirect loop. And it's caused by the statement
$response.sendRedirect($xwiki.getURL($newGlossaryReference, 'inline',
"$!{request.queryString}&title=${escapetool.url($glossaryItem)}")) in my
code I guess. I am not able to figure out why this is looping even if there
is no loop. I have tried certain things but there is no progress.
Moreover, my title bar appear like this:
http://127.0.0.1:8080/xwiki/bin/inline/Glossary/Hello?parent=Glossary.WebHo…
Here is my complete code:
https://pastebin.com/p95DeHMg
Could someone please take some time and help me out?
IRC:sarthakg
Thanks
Sarthak Gupta
--
Thomas Mortagne