I find this to be expected, but I understand why it might not be. Regardless, allinteractions in AJAX requests that are interested in the original request shouldalready be addressing `S.originalRequest`, whose purpose is explicitly calledout in the docs as having, amongst other things, ‘the original path’.We can add an S.originalUri, I guess? But there are plenty of other methods we'dneed to duplicate in that case. It feels like requiring that one use S.originalRequestin these cases makes sense.Thanks,Antonio
På lørdag 03. februar 2018 kl. 17:30:46, skrev Antonio Salazar Cardozo <savedf...@gmail.com>:I find this to be expected, but I understand why it might not be. Regardless, allinteractions in AJAX requests that are interested in the original request shouldalready be addressing `S.originalRequest`, whose purpose is explicitly calledout in the docs as having, amongst other things, ‘the original path’.We can add an S.originalUri, I guess? But there are plenty of other methods we'dneed to duplicate in that case. It feels like requiring that one use S.originalRequestin these cases makes sense.Thanks,AntonioTo ask in another way; What is the purpose of returning anything but the original request's values when calling stuff like S.uri?The goal must be that calling S.locale, S.uri etc. should return the same value whether called in a regular request, AJAX or Comet, right? If no, why?
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andreas,Do you get the context-free information you need with S.originalRequest? Changing the existing behavior of S.uri etc would a thoroughly breaking change. I don't see how we could do better than waiting until Lift 4.0 if we decided we wanted to make this change.Regardless of breaking stuff... Just going on my gut here... I suspect that applications would benefit from the behavior you want, but may be of detriment to Lift modules if not Lift itself as you already asked about. The context-dependent information/behavior available today is a vital detail at times for modules since they need to know more about the internals, whereas an application tends to need to be shielded against those details.
--
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
FWIW, I use req.uri in lift-newrelic to report comet requests differently to newrelic: https://github.com/farmdawgnation/lift-newrelic/blob/master/src/main/scala/me/frmr/newrelic/NewRelicBootstrap.scalaThis demonstrates a use case where one may, outside of the comet implementation itself, want to determine if the request being processed is a comet request or some other kind of request for reporting purposes.
--
Sorry, that strikes me as more confusing than the current situation.
--
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.