-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
WebApp.Url() doesn't work with media assets #1312
Comments
I've a problem with the og:image, which I think is only since upgrading to 8.4.1 which might be because of this change. My images are stored in Azure blob storage and the og:image I'm getting now is https://<-siteurl->https://<-image blob url-> which looks like it's coming from this call to AbsoluteContentUrl as AbsoluteUrlStart will be https://<-siteurl-> and ContentUrl will be https://<-image blob url-> which are being appended. Is this a result of this change, or am I doing something wrong somewhere? |
I'll try to reproduce this locally and get back to you! |
Did you have any luck with this one? |
@tidyui The issue described by @StephenWRogers is still present, also in v9.0.0. We're using Amazon S3 storage for our images and the |
@StephenWRogers @gerardvanderkruijs As the initial issue description states |
Hi @tidyui , |
@gerardvanderkruijs Well the line you're referring to actually uses the correct method, i.e |
Yeah I'm the same - I'd just commented on this issue as I think it was the changes from this issue that caused my issue (og:image now using AbsoluteContentUrl which produces the above output), but I guess I should probably have raised it as a new issue. It looks to me like AbsoluteUrlStart will be https://<-siteurl-> and ContentUrl will be https://<-image blob url-> which AbsoluteContentUrl appends together |
Oh I'm sorry, I think you're right @StephenWRogers, maybe it would have been better if we created a new issue. |
The new url helpers
WebApp.Url(...)
andWebApp.AbsoluteUrl(...)
doesn't work for media assets as the methods append the site prefix if available. This should be solved by adding new methodsWebApp.ContentUrl(...)
andWebApp.AbsoluteContentUrl(...)
that are suited for uploaded content.The text was updated successfully, but these errors were encountered: