webcal:// instead of http:// in Symfony2

502 Views Asked by At

I've read here on how to modify a generated url in twig.

What I'm missing is the routing side: I probably need symfony to be able to route: webcal://www.mywebsite.com/calendar instead of http://www.mywebsite.com/calendar

to be able to share my calendar in ics feed format so that MS Outlook or Google Calendar can fetch it.

The ics file I produce gets properly validated and if I open it I can see it with Outlook. Trying on localhost MS Outlook cannot import it (add from Internet). Do I really need the webcal or is there anything else I'm missing?

EDIT

Tried the schemes={ "webcal" } inside annotation. It properly spits out an url formatted properly, but still Outlook does not like it (and Chrome does not open it if I write "webcal://..." but if I write "http://.." the url gets changed to "webcal://.." and Chrome tells me that it needs an external application to open it. I selected Outlook but does not work :(

Thank you!

SN

0

There are 0 best solutions below