See:
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.resource_url

It's not clear what you want to be the resource (the first argument): root or root + path? Subsequent args are joined by `/`.

The link to the docs above should give you plenty of options to find what you want.

--steve


On 4/22/20 at 12:42 AM, [email protected] (Sydo Luciani) pronounced:

This code:
href="{{ request.resource_url(request.root, request.path , '@@create') }}">

Generates below URL:
https://domain_name.com:6543/%2FDir_1%2FDir_2/@@create 
<https://systematicd.com:6543/%2Fwiki%2FDir_2/@@create>

After domain_name:port, there is a '/' and a '%2F' which represents another '/'. double slashes after domain name, causing problem in finding the right view and the result is "page not found".

Is there a workaround this problem ?

Thanks



------------------------
Steve Piercy, Eugene, OR

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-FDA304F413104503AE8F3FD7E50A1A58%40Steves-iMac.local.

Reply via email to