Closed seocam closed 9 years ago
This almost vanilla django project reproduces the bug: https://github.com/TracyWebTech/logoutbroken
<a href="/browserid/logout/" data-next="/" class="aaa bbb ccc" >
...
<a href="/browserid/logout/" data-next="/" class="browserid-logout" >
The template tag is overriding the default class which the JS relies on. Using an ID instead of the class would fix it but limit the login button to just one.
Making the template tag append the class instead of replacing it seems a better approach to me.
The browserid_logout tag breaks if I try to use the
link_class
attribute as follow:Apparently it generates the right link but when I link on it I get the following message:
It seems to me the JS is not been able to handle the link when the classes are set.