# Onclick of button, not navigating to view

**URL:** <https://forum.ionicframework.com/t/onclick-of-button-not-navigating-to-view/13043>\
**Category:** ionic-v1\
**Created:** [November 21, 2014, 7:15pm UTC](https://forum.ionicframework.com/t/onclick-of-button-not-navigating-to-view/13043 "2014-11-21T19:15:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marni](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@marni](https://forum.ionicframework.com/u/marni)\
**Post date:** [November 21, 2014, 7:15pm UTC](https://forum.ionicframework.com/t/onclick-of-button-not-navigating-to-view/13043/1 "2014-11-21T19:15:03Z")

</div>

I’m new to ionic framework.

About the project:  
I created a basic sample project with tabs. I could able to navigate between tabs but I have a button on one of tab page and when i click on it nothing is happening.

Please help me what I’m missing

routing  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/7406/a7df77ac188556b4.png)

home tabs  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/7407/9e64d0d6ed6052b5.png)

Button on tab page  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/7408/59f72249c06c3048.png)

Appreciate your help.

---

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [November 21, 2014, 11:11pm UTC](https://forum.ionicframework.com/t/onclick-of-button-not-navigating-to-view/13043/2 "2014-11-21T23:11:36Z")

</div>

I don’t think you need to include the /app/ part. The state url is what you want to navigate to, not the template url. Try this:

```
<a href="#/home/eventsbyday"></a>

```

Refer to this [codepen](http://codepen.io/ionic/pen/odqCz).

---

<div class="post-metadata">

**Author:** ![marni](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@marni](https://forum.ionicframework.com/u/marni)\
**Post date:** [November 24, 2014, 4:00pm UTC](https://forum.ionicframework.com/t/onclick-of-button-not-navigating-to-view/13043/3 "2014-11-24T16:00:01Z")

</div>

It worked.

Thank you! appreciate your help.
