Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Bug 1690681: Generate absolute URLs in emails #70

Closed
wants to merge 1 commit into from
Closed

Bug 1690681: Generate absolute URLs in emails #70

wants to merge 1 commit into from

Conversation

Rob--W
Copy link

@Rob--W Rob--W commented Jul 14, 2021

@Rob--W
Copy link
Author

Rob--W commented Jul 14, 2021

@mitchhentges Could you review this? I haven't tested it but it should work.

@mitchhentges
Copy link
Contributor

@Rob--W sure thing, I'll take a look 👍
Can you re-create this PR for https://github.com/mozilla-conduit/phabricator instead? We're deprecating this repo soon :)

@mitchhentges
Copy link
Contributor

Tested this locally:

  • Revision and user links are generated beautifully
  • Project links (e.g.: #bmo-core-security) still have relative links (/tag/bmo-core/security). This is because we tell Phabricator that we want "regularly rendered comments", not "HTML-email rendered comments", and the regularly-rendered-comments don't respect uri.full when handling projects.
    • However, if we switch to have Phabricator generate "HTML-email rendered comments" then we run into other issues, like Phab injecting its own CSS that uses px font sizing rather than relative font sizing. IIRC, there was other reasons why we didn't tell Phab to generate comments specifically for email, but I can't remember what those reasons were 😞. Either way, this is something that we can doctor with a patch to core Phab code. But, since we hardly refer to projects, this isn't a large concern.

To summarize: nice investigation, patch looks good, let's land it once it's targeting mozilla-conduit/phabricator instead of mozilla-services/phabricator-extensions.

@Rob--W
Copy link
Author

Rob--W commented Jul 14, 2021

Moved to mozilla-conduit/phabricator#1

I apparently made the first ever PR/issue on that repo.

@Rob--W Rob--W closed this Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants