tried 
href="{{ request.resource_url(request.url , '@@create') }}">
but didn't work and got below error:
    path = [loc.__name__ or '' for loc in lineage(resource)]
AttributeError: 'str' object has no attribute '__name__'

Then tried 
href="{{ request.resource_url(request.root, request.path , '@@create') }}">
that I got double slash problem.

Need to generate full URL and then append @@create.






root, request.path , '@@create') }}">
On Wednesday, 22 April 2020 02:42:44 UTC-5, Sydo Luciani wrote:
>
> 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
>
>
>

-- 
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/6badcd90-94f4-4883-8664-bad48c6afa94%40googlegroups.com.

Reply via email to