1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I pass substrings with slash to my mediasite callback?

Discussion in 'XenForo Development Discussions' started by rhodes, Aug 1, 2015.

  1. rhodes

    rhodes Active Member

    I want to create a media site. My url is sth like this:

    http://mydomain.com/content/subpath1/subpath2

    I have these two subpaths to indentify my media. So I would need them both in my callback function.

    When I add this regular expression to my mediasite configuration page

    #mydomain\.com/content/(?P<id>\d+/[a-z0-9_]+)/#siU

    I only get the first subpath in my callback function. What can I do so that both substrings are passed?
     

Share This Page