| {% set stripped_path = request.path | replace("/", "", 1) %} |
Application is using hybrid of traversal and URL dispatch.Here is the code:currently application working fine, but using session to save and passing aroundthe coming_from_url or next_url is problematic in browsing application in multi tabs.here is the code that needs to be changed.With appending the @@create to the end of full url, then traversed url alwaysstay the same after clicking on create button and no need to save the url in session.Checking document for generating hybrid:it is not clear how to generate the current application full url.Thanks
On Wednesday, 22 April 2020 06:39:46 UTC-5, Steve Piercy wrote:
Are you using traversal or URL dispatch?
It seems that you don't want to pass in a `resource` as the
first argument to `resource_url`, so perhaps you want to use
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.route_url
?
--steve
On 4/22/20 at 2:18 AM, sydo....@gmail.com (Sydo Luciani) pronounced:
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/59678cc3-6d83-41f7-85b6-fe77bbe081f5%40googlegroups.com.
Further reading, from the sidebar in the Traversal chapter, "The Example View Callables Accept Only a Request; How Do I Access the Context Resource?":
https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/traversal.html
Hi all, this page is raising a 403 Forbidden Error... Any problems with the server?
Greetings.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/3a646780-cb0c-6b60-9e06-4ffd0c5ed6c3%40gmail.com.