Hi,

I overrided the flag.html.twig in my theme, it works before Dec 6, But after I update to the newest version, my template doesn't work, even if I change code directly in the flag.html.twig.

Comments

tcsnhj01 created an issue. See original summary.

socketwench’s picture

Can you provide your twig code?

socketwench’s picture

Status: Active » Postponed (maintainer needs more info)
tcsnhj01’s picture

Hi socketwench,

thanks for your reply!

In the "flag_follows" view, each "follow" and unfollow link just generate a simple link like "<a href="/en/flag/unflag/following/17?destination=user/19&amp;token=bcWt3epE7-xoR0gFGc247QsY35MYHaWOX_ayrpSkeIw">Follow</a>"

what I want is to add a css class(eg.btn) to this <a> tag, in the pre version of flag, I just override the flag.html.twig and it works fine. (this template works fine in the user profile page now , but not in the view's block.)

tcsnhj01’s picture

Status: Postponed (maintainer needs more info) » Active
joachim’s picture

> (this template works fine in the user profile page now , but not in the view's block.)

Can you explain more about this please? Doesn't sound right to me.

Berdir’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)