Wrong URL Paths and User Promotion
I gave a user a badge. He did get the badge. However, when you click on the badge in the activity feed it takes you to http://masseffect.vg/yaga/badges (which I would like to just be http://masseffect.vg/badges). However, that is a non-existing URL and it redirects you to the All Badges page at http://masseffect.vg/yaga/badges/1/subscriber when clicked. The correct URL is http://masseffect.vg/badges/detail/1/subscriber. When trying to delete the activity on the user profile and activity page is says 'The "ActivityController" object does not have a "xsanitize" method.|ActivityController|xsanitize|' so I had to remove the entry via phpMyAdmin.
Also, YAGA adds the "Ranks" link to the top navigation menu which appears to be a non-existing URL (http://masseffect.vg/yaga/ranks).
Furthermore, as soon as I manually gave that user the badge it automatically upgraded their rank to admin. However, I think it was because the auto award feature was enabled. When I attempted to disable the the auto award feature for that rank it showed the "Enabled" button twice. See this screen shot:
So what I did next was I click on the "Edit" button under Options and unchecked the "Automatically Award" and saved my settings. That seems to fix the/my 'issue'.
I am using Vanilla 2.2 and YAGA 1.0.0-alpha. Is anyone else having this issue?
Comments
Thanks for trying my addon!
The badges detail page has moved, but the activity story hasn't. This is an issue.
The 'The "ActivityController" object does not have a "xsanitize" method.|ActivityController|xsanitize|' is an issue with Vanilla.
As far as the enabled button appearing twice, I believe I had already fixed that via this commit: https://github.com/hgtonight/Application-Yaga/commit/2039acc20bd252d262a630b1fe62df6b0aeb37af
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
So it is a YAGA issue, correct?
Ah, I see. Thanks for the intel!
Thanks, that fixed the issue.
P.S.
I got the URL mixed up in my first post. What I meant to write was:
I gave a user a custom badge called "Subscriber". He did get the badge. However, when you click on the badge in the activity feed it takes you to http://masseffect.vg/yaga/badges/1/subscriber. However, that is a non-existing URL and it redirects you to the All Badges page at http://masseffect.vg/yaga/badges (which I would like to just be http://masseffect.vg/badges) when clicked. The correct URL should be http://masseffect.vg/badges/detail/1/subscriber.
Are you using a route to change the
/yaga/badges
to/badges
? The development version has individual badges at/yaga/badges/{id}/{slug}
and/yaga/badgedetail/{id}/{slug}
for backwards compatibility.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
No, I am not using any routes at this time. Would it be possible to just have "/badges/" without the 'yaga' slug (by default)? Thanks for the quick replies, by the way!