More in this section

Forums / Bugs & Issues / Javascript Widget and Handling ~/ URLs

Javascript Widget and Handling ~/ URLs

2 posts, 1 answered
  1. Chris
    Chris avatar
    16 posts
    Registered:
    21 Jan 2011
    18 Feb 2011
    Link to this post
    I'm using the SiteFinity Project Manager to build out a template for a client, and so when I start the site, the port number seems to be random, thus, my Javascript file references added to the site template don't resolve.

    The Javascript Widget, doesn't accept ~/ in the specified javascript url, and I can't use, for example '/JS/include.js' because that gives me the root localhost site of http://localhost:xxxx/ instead of http://localhost:xxxx/SiteName/
    I was a little surprised that it couldn't resolve to site root with the standard .NET notation.
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Feb 2011
    Link to this post
    Hello Chris,

    Thanks for your feedback. We will log this and will improve the widget. 
    You have two options from here:
    1. Move the site to IIS, and run it on fixed port or
    2. Use the following control - http://www.sitefinity.com/40/help/developer-manual/controls-utility-controls-resourcelinks-control.html

    I hope this helps.

    Best wishes,
    Georgi
    the Telerik team
    Answered
2 posts, 1 answered