Incorrect redirect to legacy JSP encounter page in LynxWildbook

In which Wildbook did the issue occur? Wildbook for Lynx

What operating system were you using? Win 11

What web browser were you using? Brave 1.87.191

What is your role on the site? Admin

What happened? When clicking on encounter links (specifically after searching for older encounters), the system redirects to a legacy JSP URL:

https://lynx.wildbook.org/encounters/encounter.jsp?number=[UUID]

This results in an HTTP Status 500 – Internal Server Error. The stack trace indicates a missing resource: javax.servlet.ServletException: JSP file [/photoswipe/photoswipeTemplate.jsp] not found.

What did you expect to happen? I expected to be directed to the modern React-based encounter page:

https://lynx.wildbook.org/react/encounter?number=[UUID]

What are some steps we could take to reproduce the issue?

1. Log in as Admin.

2. Perform a search for older encounters.

3. Click on one of the encounter results.

4. Observe that the URL points to /encounters/encounter.jsp and fails with a 500 error instead of using the /react/ path.

Error Stack Trace: ``` org.apache.jasper.JasperException: javax.servlet.ServletException: JSP file [/photoswipe/photoswipeTemplate.jsp] not found at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:593) … at org.ecocean.servlet.StrutsUTF8Filter.doFilter(StrutsUTF8Filter.java:13) causa raíz: javax.servlet.ServletException: JSP file [/photoswipe/photoswipeTemplate.jsp] not found

Hi @AntonAB

I’m not able to replicate this in Brave. Have you done a hard refresh in your browser since the most recent update (Cmd + R on Mac or Ctrl + R on PC)?

Hi @Anastasia,

I think I had already done it, but I’ve tried a hard refresh again just to be sure.

Interestingly, I can no longer replicate the error in the new search, but it still persists in the classic search.

Sorry for the trouble and thanks for your help!

Antón

OK, that one I can definitely replicate; thanks for the update! I’ll follow up soon with a ticket for this.