Timeline for Why does MediaManager.GetMediaUrl() return internal "/sitecore/shell/-/media" URL instead of "~/media" URL?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 12, 2018 at 11:34 | comment | added | Greg B |
yep. GetShellOptions() works.
|
|
Jun 12, 2018 at 11:33 | vote | accept | Greg B | ||
Jun 12, 2018 at 9:20 | comment | added | Marek Musielak♦ | Actually you can achieve what I explained with MediaManager. You just need to pass the correct MediaUrlOptions. See edited answer | |
Jun 12, 2018 at 9:19 | history | edited | Marek Musielak♦ | CC BY-SA 4.0 |
added 417 characters in body
|
Jun 12, 2018 at 8:59 | comment | added | Greg B |
I'm new to Sitecore but this seems counter-intuitive. What's the purpose of MediaManager.GetMediaUrl() if not to generate these URLs for you. Generating the URLs manually seems brittle and clunky. Is there any documentation to support this?
|
|
Jun 12, 2018 at 8:53 | history | answered | Marek Musielak♦ | CC BY-SA 4.0 |