I simply want to get the CMS page id from a random url.
So i have a page with the url "Foo/Bar", and I can get the page id for that page using :
$pageId = $this->_request->getParam('page_id', $this->_request->getParam('id', false));
But now i want to have the page_id of "Foo". but ofcourse that is not requested so I can't use the getParam method.
What method should I use to get the page ID from a page where I only know the url of?