Navigation Exception Handling when Context Path is set

Hey there,

Im using jmix 2.3.4

I tried to implement Navigation Exception Handling based on Exception Handlers :: Jmix Documentation .

If there is no context path being set, it works well. If context path is being set like http://localhost:8899/bgd/login. I noticed it detect the after the /bgd/ for Navigation Error. I tried to implement a function to set the Navigation Error after 8899/ and it didn’t work. Is there any work around to solve it because it related to penetration test.

i share screenshot for your reference.
function to call atfter ‘port’
image

image
image

Hello!

The context-path determines where your web application is accessible on the server. When you try to navigate to a different context-path or to the root, it will be considered the URL of another application on the server (which is why you see Tomcat’s “not found” page). Thus, you cannot set the root URL for an error page.