3.1releasedURL Router

Regex and Simplified Parameter based URL re-routing

Clone URLhttps://github.com/symphonists/url_router.git

Add as a submodulegit submodule add https://github.com/symphonists/url_router.git extensions/url_router --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.02.6.12.6.22.6.32.6.42.6.52.6.62.6.72.6.82.6.92.6.102.6.11
NoNo1.32.0.33.13.1NoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

URL Router

Installation

  1. Upload the /url_router into your Symphony /extensions folder.

  2. Enable it by selecting "URL Router" on the "System -> Extensions" page, choosing "Enable" from the with-selected menu, and clicking "Apply".

  3. Once installed, under the preferences page, you can choose between adding a Redirect or a Route in the URL Router section.

About

Route

A Route silently shows the content under the original URL.

Redirect

A Redirect which will actually redirect the user to the new URL you specify.

Version history

Symphony 2.4 to 2.5.x

  • #20 Fix routing on Symphony 2.4+
  • Use PageManager instead of internal functions
  • Ensure routes are returned when GET parameters are omitted

Symphony 2.4 to 2.5.x

  • Symphony 2.4+ support
  • #18 Add success message when saving routes
  • #16 Consistently use dollar notation instead of colon
  • #8 When dealing with external URL's, strip the trailing slash that Symphony always adds to routes

Symphony 2.3 only

  • Bug fix for adding querystring parameters to the GET array, unless external

Symphony 2.3 only

  • Bug fix for localized backends not showing navigation menu item

Symphony 2.3 only

  • Bug fix for Symphony hosted in a subfolder. Thanks Nils Hoerrmann.

Requires Symphony 2.3

  • Major release includes updates for 2.3
  • Moved Routes onto separate page under Blueprints (Nils Werner, John Porter)
  • Removed the update functionality as is a breaking release

Requires Symphony 2.2

  • Rails-like routing. You may now use a syntax similar to page-name/:user/projects/:project for matching and reference each parameter by its name: /new-page-name/:user/:project

Requires Symphony 2.2

  • Updates to add inline help to the Routes/Redirects in the preferences page.
  • Core code change to wrap the routes and redirects in checks for stability, and to allow more control.
  • Incorporate Root Page Params methods. Allows all 'index' page type parameters to be accessible from the root, as they should be.
  • Add forcing of routing if page to route from exists.

Requires Symphony 2.2

Requires Symphony 2.2

  • Removed the global option to redirect routes.
  • Changed the duplicator templates to allow either Routes or Redirects, instead of the global choice.
  • Added updating logic.
  • Added prevention of routing if the code is updated, but the extension reference in Symphony isn't. This is due to the functionality changing, and will prevent errors.

Requires Symphony 2.2

Requires Symphony 2.2

  • Bug fix to remove rogue query I forgot to remove, thanks Vlad Ghita for spotting that one

Requires Symphony 2.2

  • Update as Symphony Team takes ownership.
  • Renamed extension class and folder to url_router.
  • Manually merged @nickdunn's changes.

Requires Symphony 2.2

  • Symphony 2.2 compatiability update

Requires Symphony 2.0.7

  • Applied patches from pull requests to fix various issues including save failure when no redirects entered and pass-by-reference warning

Requires Symphony 2.0.7

  • Remove router.js as it's no longer needed
  • Fix error in save logic, no longer tries to write to config.php

Requires Symphony 2.0.7

  • Only add router.js to the /system/preferences/ page (was breaking other JS)
  • Updated README with correct installation details

Requires Symphony 2.0.7

  • Initial release, brief documentation forthcoming.