diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -439,9 +439,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
439 | 439 | ||
440 | // Display opensearch plugin (XML) | 440 | // Display opensearch plugin (XML) |
441 | if ($targetPage == Router::$PAGE_OPENSEARCH) { | 441 | if ($targetPage == Router::$PAGE_OPENSEARCH) { |
442 | header('Content-Type: application/xml; charset=utf-8'); | 442 | header('Location: ./open-search'); |
443 | $PAGE->assign('serverurl', index_url($_SERVER)); | ||
444 | $PAGE->renderPage('opensearch'); | ||
445 | exit; | 443 | exit; |
446 | } | 444 | } |
447 | 445 | ||
@@ -1575,6 +1573,7 @@ $app->group('', function () { | |||
1575 | $this->get('/daily-rss', '\Shaarli\Front\Controller\DailyController:rss')->setName('dailyrss'); | 1573 | $this->get('/daily-rss', '\Shaarli\Front\Controller\DailyController:rss')->setName('dailyrss'); |
1576 | $this->get('/feed-atom', '\Shaarli\Front\Controller\FeedController:atom')->setName('feedatom'); | 1574 | $this->get('/feed-atom', '\Shaarli\Front\Controller\FeedController:atom')->setName('feedatom'); |
1577 | $this->get('/feed-rss', '\Shaarli\Front\Controller\FeedController:rss')->setName('feedrss'); | 1575 | $this->get('/feed-rss', '\Shaarli\Front\Controller\FeedController:rss')->setName('feedrss'); |
1576 | $this->get('/open-search', '\Shaarli\Front\Controller\OpenSearchController:index')->setName('opensearch'); | ||
1578 | 1577 | ||
1579 | $this->get('/add-tag/{newTag}', '\Shaarli\Front\Controller\TagController:addTag')->setName('add-tag'); | 1578 | $this->get('/add-tag/{newTag}', '\Shaarli\Front\Controller\TagController:addTag')->setName('add-tag'); |
1580 | })->add('\Shaarli\Front\ShaarliMiddleware'); | 1579 | })->add('\Shaarli\Front\ShaarliMiddleware'); |