Closed QuirijnLangedijk closed 1 year ago
@QuirijnLangedijk can you find out who is causing this? I don't see the issue in our test Alloy project. You can just clone the repo, build and run.
I see the same issue with some images in Foundation. The encoded url doesn't seem to be a problem, but the query string is -- it ends up with two "?" in the URL and the second one gets treated as a literal "?", which ends up at a 404. However, I don't know if it's something that can be fixed in the add-on:
For example, the header image breaks in external view/review links, because the image path gets rendered as: "/ImageProxy?token=83615482-ef5c-4e38-ab3d-2f1c1d8dcafe&contentLink=323?format=webp&width=225"
The second question mark in there comes from the View: \src\Foundation\Features\Shared\Views\Header_Navigation.cshtml "@Url.ContentUrl(Model.LayoutSettings.SiteLogo)?format=webp&width=225"
Since the View is appending the additional query string after the URL is generated by advanced-reviews, I'm not sure anything can be done on this end. Thoughts?
(Ping me on Teams/email if you have any questions on this example.)
Hi,
When visiting a preview link, image urls give a 404. This seems to be because the generated URLs are wrong, or break the package. For example:
src="http://localhost:57728/ImageProxy?token=ef3ed40e-69ea-4a7b-b4fc-4a67e6405790&contentLink=5517_12302?width=518&height=345"
I can find two reasons why:So:
"http://localhost:57728/ImageProxy?token=ef3ed40e-69ea-4a7b-b4fc-4a67e6405790&contentLink=5517_12302?width=518&height=345"
doesnt work,"http://localhost:57728/ImageProxy?token=ef3ed40e-69ea-4a7b-b4fc-4a67e6405790&contentLink=5517_12302"
doesnt work either, only"http://localhost:57728/ImageProxy?token=ef3ed40e-69ea-4a7b-b4fc-4a67e6405790&contentLink=5517_123025"
worksIs there any way to make sure the query parameters dont break the images?