1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 01:32:42 +01:00
phorge-phorge/src/applications/system/controller
epriestley 1f6ad5e7dd Support ".ico" in Celerity and simplify rewite rule configuration
Summary:
See D16734.

  - Add ".ico" files to the Celerity map.
  - Add a formal route for "/favicon.ico".
  - Remove instructions to configure `/rsrc/` and `/favicon.ico` rewrite rules.

Long ago, we served resources directly via `/rsrc/` in at least some cases. As we added more features, this stopped working more and more often (for example, Apache can never serve CSS this way, because it doesn't know how to post-process `{$variables}`).

In modern code (until this change), only `/favicon.ico` is still expected to be served this way.

Instead, serve it with an explicit route via controller (this allows different Sites to have different favicons, for example).

Remove the instructions suggesting the old rewrite rules be configured. It's OK if they're still in place -- they won't break anything, so we don't need to rush to get users to delete them.

We should keep "webroot/favicon.ico" in place for now, since it needs to be there for users with the old rewrite rule.

Test Plan:
  - Ran celerity map.
  - Loaded `/favicon.ico`, got resource via route.
  - Used `celerity_generate_resource_uri()` to get paths to other icons, loaded them, got icons.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D16737
2016-10-20 11:28:11 -07:00
..
PhabricatorDebugController.php Add a robots.txt file to disallow /diffusion/ 2014-03-14 11:53:17 -07:00
PhabricatorRobotsController.php Don't require one-time tokens to view file resources 2016-04-06 14:14:36 -07:00
PhabricatorStatusController.php Add a robots.txt file to disallow /diffusion/ 2014-03-14 11:53:17 -07:00
PhabricatorSystemFaviconController.php Support ".ico" in Celerity and simplify rewite rule configuration 2016-10-20 11:28:11 -07:00
PhabricatorSystemReadOnlyController.php Automatically degrade to read-only mode when unable to connect to the master 2016-04-10 12:20:13 -07:00
PhabricatorSystemSelectEncodingController.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorSystemSelectHighlightController.php Substantially support character encodings and "Highlight As" in changesets 2014-06-20 11:49:41 -07:00