diff --git a/CHANGELOG.md b/CHANGELOG.md index 32a9f1ba9d9..f15e9f4c0a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Changed + +- Rewire the legacy routes to extension-free urls so they are reachable at their own declared urls - [#203](https://github.com/owncloud/firstrunwizard/pull/203) ## [1.4.1] - 2026-07-22 diff --git a/appinfo/routes.php b/appinfo/routes.php index df00dc76730..28a1bff7381 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -8,9 +8,9 @@ /** @var $this OC\Route\Router */ -$this->create('firstrunwizard_enable', 'ajax/enable.php') +$this->create('firstrunwizard_enable', 'ajax/enable') ->actionInclude('firstrunwizard/ajax/enable.php'); -$this->create('firstrunwizard_disable', 'ajax/disable.php') +$this->create('firstrunwizard_disable', 'ajax/disable') ->actionInclude('firstrunwizard/ajax/disable.php'); -$this->create('firstrunwizard_wizard', 'wizard.php') +$this->create('firstrunwizard_wizard', 'wizard') ->actionInclude('firstrunwizard/wizard.php'); diff --git a/js/firstrunwizard.js b/js/firstrunwizard.js index 8f5e48cd478..c499b0784ba 100644 --- a/js/firstrunwizard.js +++ b/js/firstrunwizard.js @@ -5,10 +5,10 @@ function showfirstrunwizard(){ speed:100, width:"70%", height:"70%", - href: OC.filePath('firstrunwizard', '', 'wizard.php'), + href: OC.generateUrl('/apps/firstrunwizard/wizard'), onClosed : function(){ $.ajax({ - url: OC.filePath('firstrunwizard', 'ajax', 'disable.php'), + url: OC.generateUrl('/apps/firstrunwizard/ajax/disable'), data: "" }); }