rohitkrishna-marneni commented on issue #12023:
URL: https://github.com/apache/apisix/issues/12023#issuecomment-2733227061

   @mikyll Thanks for the help. Now it seems to be working, however I have a 
weird issue.
   
   I applied this to a route called "/shop/*". So when I go to a page like 
"/shop/invalid-product" I get proper 404 page as expected. 
   
   However if I go to a valid page "/shop/valid-product", then this page makes 
some asset calls(css, js, ajax etc). Lets assume one such call is 
"/shop/price/...". Lets also assume that this endpoint throws a 404, but 
because we have a custom plugin its returning a 404 but with custom html 
body(the 404 url that we gave) and as a result that 404 page is being embedded 
into my main "/shop/valid-product" page.
   
   Is there a way to apply this to only the main endpoint which I am hitting 
from the browser? That is if I go "google.com", this should apply only to that 
endpoint and not for any ajax/css/js(etc) calls that happen on that page?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to