diff --git a/app/models/person.rb b/app/models/person.rb index a6d295529a5c1658b9b7166a3aa65eecbf1e7033..e568aee173d8580d47acc58a63f85d39c6a79718 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -50,7 +50,7 @@ class Person end def public_url - "#{self.url}users/#{self.owner.username}/public" + "#{self.url}users/#{self.owner.username}" end diff --git a/config/routes.rb b/config/routes.rb index 16f6a9c98d786b919edaff623593ddcdd1842d13..b6e8a293e693e6a4374bd2081996b0041d4759ea 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,7 +11,7 @@ Diaspora::Application.routes.draw do resources :albums # added public route to user - match 'users/:username/public', :to => 'users#public' + match 'users/:username', :to => 'users#public' resources :users, :except => [:create, :new, :show] match 'aspects/move_friends', :to => 'aspects#move_friends', :as => 'move_friends'