Problem/Motivation
If the site is in a subdirectory like http://example.com/subdir/, then the links are generated as http://example.com/subdir/subdir/. The problem is in \Drupal\mimemail\Utility\MimeMailFormatHelper::mimeMailUrl which does not strip out the base path in all scenarios.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | links_are_not_generated-2807649-2.patch | 912 bytes | hussainweb |
Comments
Comment #2
hussainwebThis probably fixes other bugs with base path as well. If we don't correctly filter out the trailing slash from base_path(), then there is an exception when generating the URL. I tested this change when both the site is in a subdirectory or in the docroot.
Comment #3
damienmckennaLooks good to go.
Comment #5
sgabe commentedCommitted, thanks!