You have a <button> inside the <a> element - get rid of the button, otherwise you will submit your form.
If you want your anchor to be styled like a button, give it the btn class.
And Bootstrap is just a big CSS toolkit with a bit of js thrown - no APIs at all :))
EDIT: Currently, HTML semantics and appearance are well separated [although someone might argue that Bootstrap has its own hacks about this, see its use of <i> for icons].
Keeping track of your case, you wanted to use <button> to create a simple anchor, such as an embossed button. But the <button> is just a way to provide a richer <input type="submit"> into which you can embed images, for example [see All BS examples with icons next to the buttons].
Well, <input type="submit"> and <button> inside the <form> trigger the last action , i.e. send some user input to that location.
If you just need to find any URL without sending anything, you will need the anchor tag [ <a> ], which can be written as you wish, for example. with BS classes btn , btn-primary , btn-whateva .
source share