Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Use absolute URL for submitted file links in emails #1226

Conversation

GuySartorelli
Copy link
Member

Mimic $file->getAbsoluteURL() while still respecting file grant rules.

Issue

@emteknetnz emteknetnz merged commit 60717e5 into silverstripe:5.15 Aug 8, 2023
12 checks passed
@emteknetnz emteknetnz deleted the pulls/5.15/absolute-file-url branch August 8, 2023 02:53
@michalkleiner
Copy link
Contributor

I'll test this but I don't see how this would fix the problem.

@GuySartorelli
Copy link
Member Author

@michalkleiner can you please elaborate?
The problem was caused by swapping from getAbsoluteURL to getURL - returning the absolute URL should make the URL... Well, absolute - i.e. it'll include the missing domain.

@michalkleiner
Copy link
Contributor

michalkleiner commented Aug 8, 2023

Sorry @GuySartorelli, it will fix the missing domain, I though this was also linked to the permission issue which is what I was reacting to. All good for the domain stuff and let's look into the permissions issue (1225) separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants