Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
5283 Ansichten

Hello everyone, I'm developing in Qweb and I need to make a redirection to a page when the user clicks an href tag, but the controller is not rendering the template.

This is the code:

The redirection tag:

<a t-attf-href="/index/{{kid.id}}">

The controller:

@http.route(['/index/<int:data>'], type='http', auth='user', website=True)
def user_render(self):
return http.request.render('coas_education_website.custom_coas_user_contentas', {})

The template:

<template id="custom_coas_user_contentas">
<p>HOLA</p>
</template>

Any suggestion? Thanks for reading.


Avatar
Verwerfen

What is currently showing with this code?

Is there any error messages?

Autor

Is not showing any error messages, is rendering the main template but not the one that I want to show.

I writed wome code traces in the controller but they are not printed so I assumed that is not executing this code.

Any suggestion?

Autor Beste Antwort

Any help?

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juli 23
6500
1
Juni 23
4412
1
Apr. 23
5140
1
Jan. 23
3327
1
Nov. 22
3853