Homec4science

Create script printing controller name based on URL

Authored by vrana <jakubv@fb.com> on Mar 1 2012, 21:12.

Description

Create script printing controller name based on URL

Summary:
With this script, I am able to add bookmarklet to my browser which edits the
controller responsible for displaying current page by a single click.
Plus it can be useful also for other uses.

Test Plan:

./aphrontpath.php /
./aphrontpath.php D123
./aphrontpath.php /D123
./aphrontpath.php /D123/ # doesn't exist
./aphrontpath.php https://secure.phabricator.com/D123
./aphrontpath.php https://secure.phabricator.com/D123?x=2
./aphrontpath.php https://secure.phabricator.com/D123#comment-1
./aphrontpath.php differential
./aphrontpath.php /differential/
./aphrontpath.php /w/ # rewritten by custom config

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Maniphest Tasks: T349

Differential Revision: https://secure.phabricator.com/D1746

Details

Committed
vrana <jakubv@fb.com>Mar 2 2012, 00:17
Pushed
aubortJan 31 2017, 17:16
Parents
rPH0327a5fc69ae: OAuthServer polish and random sauce
Branches
Unknown
Tags
Unknown

Event Timeline

vrana <jakubv@fb.com> committed rPH9b56c7e8a125: Create script printing controller name based on URL (authored by vrana <jakubv@fb.com>).Mar 2 2012, 00:17