1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-02 09:58:24 +01:00

Fix incorrect context extraction for relative Phriction links on Phriction pages

Summary: Ref T13077. This content extraction rule wasn't right and caused rendering on Phriction pages to extract context improperly.

Test Plan: Viewed pages in Phriction with relative links to other documents.

Maniphest Tasks: T13077

Differential Revision: https://secure.phabricator.com/D19114
This commit is contained in:
epriestley 2018-02-16 12:30:33 -08:00
parent db3ef4021a
commit 66a7ca49b2

View file

@ -275,7 +275,7 @@ final class PhrictionRemarkupRule extends PhutilRemarkupRule {
}
if ($context instanceof PhrictionDocument) {
return $context->getSlug();
return $context->getContent()->getSlug();
}
return null;