Skip to content

Commit

Permalink
Add canonical urls. issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Jan 10, 2016
1 parent cbf4c33 commit f9a7454
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions anatomy/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ angular.module('proso.anatomy', [
}).when('/practice/:category?/:category2?', {
controller : 'AppPractice',
templateUrl : 'static/tpl/practice_tpl.html'
}).when('/overview/tab/:tab', {
controller : 'AppOverview',
templateUrl : 'static/tpl/overview_tpl.html'
}).when('/overview/:user?', {
controller : 'AppOverview',
templateUrl : 'static/tpl/overview_tpl.html'
Expand Down
4 changes: 2 additions & 2 deletions anatomy/static/tpl/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1 >{{ "Anatom.cz"|translate }}</h1>
track-click="homepage choose system" >
{{"Vybrat orgánový systém" | translate }}
</a>
<a href="/overview/?tab=location"
<a href="/overview/tab/location"
class="btn btn-default btn-lg btn-huge"
track-click="homepage choose bodypart" >
{{"Vybrat část těla" | translate }}
Expand Down Expand Up @@ -186,7 +186,7 @@ <h3>{{"Otázky Tobě na míru" | translate }}</h3>
track-click="homepage-bottom choose system" >
{{"Vybrat orgánový systém" | translate }}
</a>
<a href="/overview/?tab=location"
<a href="/overview/tab/location"
class="btn btn-default btn-lg btn-huge"
track-click="homepage-bottom choose bodypart" >
{{"Vybrat část těla" | translate }}
Expand Down
1 change: 1 addition & 0 deletions anatomy/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<meta name="msapplication-wide310x150logo" content="/static/img/icons/widetile.png" />
<meta name="msapplication-square310x310logo" content="/static/img/icons/largetile.png" />

<link rel="canonical" href="{{canonical_ur}}">

{% for lang, domain in LANGUAGE_DOMAINS.items %}
<link rel="alternate" href="//{{domain}}/{{hack}}" hreflang="{{lang}}" />
Expand Down

0 comments on commit f9a7454

Please sign in to comment.