Page MenuHomePhabricator

Provide context objects for remarkup mail rendering, fixing Phriction relative URIs in initial email
ClosedPublic

Authored by epriestley on Feb 16 2018, 1:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 10:53 PM
Unknown Object (File)
Sat, Dec 21, 5:32 PM
Unknown Object (File)
Thu, Dec 19, 7:07 PM
Unknown Object (File)
Thu, Dec 19, 7:07 PM
Unknown Object (File)
Fri, Dec 13, 7:56 AM
Unknown Object (File)
Thu, Dec 5, 8:01 PM
Unknown Object (File)
Wed, Nov 27, 1:03 AM
Unknown Object (File)
Nov 23 2024, 12:32 AM
Subscribers
None

Details

Summary

Fixes T10969. Ref T13077. When you create a Phriction document with a relative link ([[ ./path/to/page ]]) the initial email currently points to the wrong place.

This is because the context object (the page) isn't passed to the markup engine. Without this context, the relative link is rendered as though it appeared somewhere else (like a task or revision) where relative links don't make sense.

Test Plan

Created a new Phriction document with a relative link to [[ ./porcupine_facts/starmap ]], saw a usable link in the resulting email.

Diff Detail

Repository
rP Phabricator
Branch
phriction1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19587
Build 26514: Run Core Tests
Build 26513: arc lint + arc unit