Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: fix buisness plugin redirect issue #2648

Merged
merged 1 commit into from
Jan 21, 2016
Merged

Conversation

enejb
Copy link
Member

@enejb enejb commented Jan 21, 2016

Currently you are not able to go to
https://wordpress.com/plugins/gumroad the user is redirected to https://wordpress.com/plugins/gumroad/business

This PR fixed this by making sure that the user is still able to visit any plugin slug.
It also make sure that we redirect users if they for some reason try to visit a plugin url that is not a buisness plugin. for example /akismet/buiness that they get redirected to /akismet instead.

To test
visit the following urls and make sure you end up the expected url.
http://calypso.localhost:3000/plugins/gumroad/business
http://calypso.localhost:3000/plugins/gumroad/
http://calypso.localhost:3000/plugins/jetpack/buisness

http://calypso.localhost:3000/plugins/gumroad/business/.comsite
http://calypso.localhost:3000/plugins/gumroad/.jetpack.site

@enejb enejb added [Type] Bug Jetpack [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Business Plugins labels Jan 21, 2016
@enejb enejb self-assigned this Jan 21, 2016
@johnHackworth
Copy link
Contributor

This works great. It's amazing such a small change improves the funcionality so much!! 🚢

@enejb enejb force-pushed the fix/gumroad-org-plugin-view branch from 2415bd1 to 8032765 Compare January 21, 2016 18:03
enejb added a commit that referenced this pull request Jan 21, 2016
Plugin: fix buisness plugin redirect issue
@enejb enejb merged commit 53d8f99 into master Jan 21, 2016
@enejb enejb deleted the fix/gumroad-org-plugin-view branch January 21, 2016 18:12
@scruffian scruffian removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Status] Ready to Merge labels Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants