Skip to content

Commit

Permalink
Fixed issue with URL detection for editing pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi58 committed Sep 23, 2016
1 parent dbf1bf6 commit 59202c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Inachis/CoreBundle/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function getPostAdmin($request, $response, $service, $app)
self::redirectIfNotAuthenticated($request, $response);
$urlManager = new UrlManager(Application::getInstance()->getService('em'));
// Confirm URL is for existing content otherwise redirect
$url = $urlManager->getByUrl($request->server()->get('REQUEST_URI'));
$url = $urlManager->getByUrl(str_replace('/inadmin/', '', $request->server()->get('REQUEST_URI')));
if (empty($url) && 0 === preg_match(
'/\/?inadmin\/(post|page)\/new\/?/',
$request->server()->get('REQUEST_URI')
Expand Down

0 comments on commit 59202c8

Please sign in to comment.