diff --git a/media/js/newsblur/models/users.js b/media/js/newsblur/models/users.js index ceaae9e3f..ce0664928 100644 --- a/media/js/newsblur/models/users.js +++ b/media/js/newsblur/models/users.js @@ -20,7 +20,12 @@ NEWSBLUR.Models.User = Backbone.Model.extend({ }, blurblog_url: function() { - return 'http://' + Inflector.sluggify(this.get('username')) + window.location.host.replace('www.', ''); + return [ + 'http://', + Inflector.sluggify(this.get('username')), + '.', + window.location.host.replace('www.', '') + ].join(''); } }); diff --git a/media/js/newsblur/views/profile_badge_view.js b/media/js/newsblur/views/profile_badge_view.js index d61dc4fe1..8187d8302 100644 --- a/media/js/newsblur/views/profile_badge_view.js +++ b/media/js/newsblur/views/profile_badge_view.js @@ -54,7 +54,7 @@ NEWSBLUR.Views.SocialProfileBadge = Backbone.View.extend({ 'shared ', Inflector.pluralize('story', profile.get('shared_stories_count')), ' · ', - $.make('a', { href: profile.blurblog_url(), target: "_blank", className: "NB-profile-badge-blurblog-link NB-splash-link" }, profile.blurblog_url()) + $.make('a', { href: profile.blurblog_url(), target: "_blank", className: "NB-profile-badge-blurblog-link NB-splash-link" }, profile.blurblog_url().replace('http://', '')) ])) ]) ])