diff --git a/pinry/core/static/core/js/pinry.js b/pinry/core/static/core/js/pinry.js
index 0d899c1..6f46836 100644
--- a/pinry/core/static/core/js/pinry.js
+++ b/pinry/core/static/core/js/pinry.js
@@ -41,13 +41,22 @@ function loadData(tag) {
if (tag !== undefined) {
globalTag = tag;
+ window.history.pushState(tag, 'Pinry - Tag - '+tag, '/pins/tag/'+tag+'/');
+ } else if (url(2) == 'tag') {
+ tag = url(3);
+ globalTag = tag;
+ window.history.pushState(tag, 'Pinry - Tag - '+tag, '/pins/tag/'+tag+'/');
}
- if (tag !== undefined && page != 0) {
+ if (tag !== undefined) {
$('#pins').html('');
page = 0;
- if (tag != null) $('.tags').html('' + tag + ' x');
- else $('.tags').html('');
+ if (tag != null)
+ $('.tags').html('' + tag + ' x');
+ else {
+ $('.tags').html('');
+ window.history.pushState(tag, 'Pinry - Recent Pins', '/pins/');
+ }
}
var loadURL = apiURL+(page*30);
diff --git a/pinry/core/templates/core/base.html b/pinry/core/templates/core/base.html
index 6380ffb..bf1dca9 100644
--- a/pinry/core/templates/core/base.html
+++ b/pinry/core/templates/core/base.html
@@ -52,10 +52,10 @@
+
{% endcompress %}
-