Configuring Tabs URLs

Please help me to understand how can i configure my app Urls. I am trying to do a simple app with a tab in the home page with three options and by default it load the second tab. I want to use a url for each tab option. I’ve tried and seen some tutorials but when i am trying it doesn’t work. Please look a sample in code pen and help me to understand.

I want to use a template for home and it contains the tab, each tab option have their own template.

Link to codepen

here is the code also:


    <html ng-app="myApp">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

    <link href="lib/ionic/css/ionic.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <!-- ionic/angularjs js -->
    <script src="lib/ionic/js/ionic.bundle.js"></script>

    <!-- cordova script (this will be a 404 during development) -->
    <script src="cordova.js"></script>

    <!-- your app's js -->
    <script src="js/app.js"></script>
      <ion-nav-bar class="bar-positive">
        <ion-nav-back-button class="button-icon ion-arrow-left-c">
      <script id="templates/home.html" type="text/ng-template">
         <ion-tabs class="tabs-top tabs-background-positive tabs-color-light">
          <ion-tab title="CATEGORIAS" shref="">
            <ion-nav-view name="home-one"></ion-nav-view>
          <ion-tab title="HOY" ng-controller="PostsCtrl" shref="home.two">
            <ion-nav-view name="home-two"></ion-nav-view>
          <ion-tab title="FAVORITOS" shref="home.three">
            <ion-nav-content name="home-three"></ion-nav-content>
      <script id="templates/one.html" type="text/ng-template">
        <ion-view view-title="One TAB">
      <script id="templates/two.html" type="text/ng-template">
        <ion-view view-title="Two TAB">
      <script id="templates/three.html" type="text/ng-template">
        <ion-view view-title="Three TAB">


 app = angular.module('myApp', ['ionic']);
    app.config(function($stateProvider, $urlRouterProvider) {
          .state('home', {
            url: '/',
            abstract: true,
            templateUrl: "templates/home.html",
          .state('', {
            url: '/one',
            views: {
              'home-one': {
                    templateUrl: "templates/one.html",
    	  .state('home.two', {
            url: '/two',
            views: {
              'home-two': {
                    templateUrl: "templates/two.html",
    	  .state('home.three', {
            url: '/three',
            views: {
              'home-three': {
                    templateUrl: "templates/three.html",

(Sorry if my english isn’t too good)