-
Notifications
You must be signed in to change notification settings - Fork 18
run filter before rewrite? #26
Comments
Hi @milewski! Sorry, but I do not really understand the whole issue. Can you please try to explain it a little bit more? / Gregor |
Ok so this is my use case: i have a Single Page Application (SPA) as usually every route should point to the
what i am trying to do is when user access for example:
however due to the rewriting logic the path is always set to
|
Hey @blaubaer any insights on this? |
Sorry for my very late response, this issue get fully out of track for me. Sorry again. Thank you for describing your issue very detailed. So the issue is, that:
So the only solution might be to add another place holder which contains also the original request path. But this might be still challenging. Do you still need a solution for that? |
Sorry i think on my explanation i made a mistake, i meant to say because of the rewrite rewrites the request from 1 Year later now i see that my original question is somewhat impossible, as i was asking if the filter could run before the rewrite.. but it wouldn't have the "html" to do the search replace in first place... So the issue now is that the filter matching algorithm should be done upon the original request instead of the "rewrited" one... not sure if this would make sense for those not doing SPA application.... At that time my use case was a "hack" i was attempting to let the server rewrite the page titles and descriptions automatically based on the route use goes... so we could have those ready on the first response sent to the client... goal was to improve SEO etc... but i ended up doing pre-compilation on the SPA itself instead |
is there a way to run the filter before the rewrite? for example
in this example the path is always
/
because of the rewrite .... so the rule never matches anything other than/
.The text was updated successfully, but these errors were encountered: