Homestyx hydra
Diffusion hydra 9b56c7e8a125

Create script printing controller name based on URL

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

Provenance
vranaAuthored on Mar 1 2012, 3:12 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:0327a5fc69ae: OAuthServer polish and random sauce
Branches
Unknown
Tags
Unknown

Event Timeline