Skip to content

Commit

Permalink
[BUGFIX] Fix #69: if alias is set to the url, page cannot be decide i…
Browse files Browse the repository at this point in the history
…f url is cached

page_id in tx_realurl_urlcache is 0.
  • Loading branch information
dmitryd committed Mar 12, 2016
1 parent 2371304 commit f67fc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Encoder/UrlEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ protected function storeInUrlCache() {
if (!$cacheEntry || $cacheEntry->getSpeakingUrl() !== $this->encodedUrl) {
$cacheEntry = GeneralUtility::makeInstance('DmitryDulepov\\Realurl\\Cache\\UrlCacheEntry');
/** @var \DmitryDulepov\Realurl\Cache\UrlCacheEntry $cacheEntry */
$cacheEntry->setPageId($this->originalUrlParameters['id']);
$cacheEntry->setPageId($this->urlParameters['id']); // $this->originalUrlParameters['uid'] can be an alias, we need a number here!
$cacheEntry->setRequestVariables($this->originalUrlParameters);
$cacheEntry->setRootPageId($this->rootPageId);
$cacheEntry->setOriginalUrl($this->originalUrl);
Expand Down

0 comments on commit f67fc82

Please sign in to comment.