'PUG: How to make a button that links to another page, it is not working [duplicate]

This is my code. I normally can do this in HTML but I am learning PUG. I don't know why the link is not working. I can't make it go to another HTML page. I don't understand why it is not working.

thank you for your advise

the code



Solution 1:[1]

I solved it by changing the highlighted line to a different type like this.

a(class='button' href='destinations.html' id="btn_destinations") Ir a destinos

it worked. I still don't understand why the previous one didn't work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Liliana Andrea Amaya Paez