Skip to content

Commit d0da22a

Browse files
committed
trial 2
1 parent 2174010 commit d0da22a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ app.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
3838
})
3939

4040
.state('post', {
41-
url: '/post/{id}/{slug}',
41+
url: '/post/:id/:post_slug',
4242
templateUrl: 'pages/post.html?v='+PageDetails.version_number,
4343
controller: 'postController',
4444
title: PageDetails.post.page_title

pages/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h1>{{ page_title }}</h1>
2222

2323
<div class="post-preview" ng-repeat="post in posts">
2424
<h2 class="post-title">
25-
<a ui-sref="post({postMan:post,id:post.id})">{{ post.post_title }}</a>
25+
<a ui-sref="post({postMan:post})">{{ post.post_title }}</a>
2626
</h2>
2727
<div ng-show="post.categories != undefined">
2828
<ul class="list-unstyled post-categories">

0 commit comments

Comments
 (0)