Do we have "relative URL" ?

This question is because we have "absolute URL".
So I wonder if there is a "relative URL"?
If so, what is the functionality of each?
Points guaranteed. Thanks!

Jennifer,
yes there certainly is.
Absolute URL would be something like http://www.test.com/pics/test.jpg and it refers to the "complete" path to the object in question.
Relative URL would be something like ./pics/test.jpg and it refers to the partial path to the object in question.  This is usually what happens in HTML pages as there is little need to provide a complete URL as the object probably resides on the same server as the page from which it is being called.
Of course the 2 can be inter matched as required and often are seen together since you might be referencing an item from a foreign website as well as local content.
Hope that makes it a little clearer?
Haydn

Similar Messages

  • Can't view dashboard with relative url in BI 4 Launchpad

    I created a dashboard using BIWS connections and I am able to preview the dashboard when i have the full path of Web Service URL but when I use the relative url and publish to launchpad I get the "Cannot access external data......, Unable to load URL:/dswsbobje/Services/Session..." error message. Any ideas on how to solve this?
    Thanks

    Are you trying to preview the dashboard from dashboard designer tool ?  If yes, then you must have a full web service url, otherwise, it will not be able to resolve the server and port.
    But, if you use relative URL and export the same to BO repository, you will be able to view the same by logging into BI Launchpad. There it can resolve the server name and port from existing session.

  • Sharepoint 2013 Wiki Page - Links in content rewritten to relative urls

    We have an issue where on all SharePoint 2013 wiki pages any URL to items within the site containing the wiki page are rewritten to be relative URLs. This causes a huge problem when we surface these pages and a snippet of their content through a search web
    part because the links fail being relative to the wiki page itself. To further illustrated with an example.
    A site collection root page http://www.sp2013.com/default.aspx contains a search results web part returning all wiki pages in the site collection. There is a custom display template that renders
    the linked title of the wiki page and the first 500 characters of formatted text (html) of the wiki page.
    A wiki page is created in a sub site (sub1) called wiki1 (http://www.sp2013.com/sub1/pages/wiki1.aspx) the text of the page contains:
    "Check out our new library: Document Library"
    Document Library is a hyperlink to (http://www.sp2013.com/sub1/Document%20Library/Forms/AllItems.aspx)
    Upon saving the wiki page the link is reformatted to be /Document%20Library/Forms/AllItems.aspx
    From the rollup web part at http://www.sp2013.com/default.aspx the relative url in the snippet text of the display template evaluates to
    http://www.sp2013.com/Document%20Library/Forms/AllItems.aspx which does not exist.
    I have attempted modifying the source of the wiki page as well as the link in the ribbon however upon save of the changes the link is always modified to be relative. Any assistance is appreciated as this is extremely frustrating. Thank you.

    Hi JonesEJ,
    According to your description, my understanding is that SharePoint converts a absolute URL to
     a relative URL when you save the wiki pages containing the URL.
    This is actually the preferred behavior in SharePoint and on the web in general. SharePoint saves all absolute URLs for the wiki content as relative. It only does this if the URL matches the URL for the web application for that current wiki
    site.
    There is no OOB way to change the relative URL back to the absolute URL. For your issue, you can try to use
    SPSite.MakeFullUrl() to convert it back.
    There is a similar post for your reference:
    http://sharepoint.stackexchange.com/questions/62887/absolute-urls-converted-to-relative-urls-when-saving-item
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Relative URLs not working in JAR file once JAR is moved

    I've been loading images with the following:
    public static final ImageIcon anIcon = new ImageIcon("iconName.gif");
    This works fine when all the class files are in the same folder with the gifs. I then packaged the whole folder into a .jar file, moved the resulting .jar file to another directory, tried running it and none of the icons loaded. They are present in the .jar file, why doens't the relative URL still work? Is there simply another way to write the URL so that it knows to look in the .jar file?
    Thanks for help,
    Robert Douglass

    Is there simply another way to write the URL so that it knows to look in the .jar file?Once you put the class files along with your gif files in a jar, you have to access the gif file like this:
    import java.net.*;
    URL url=myClass.class.getResource("iconName.gif");
    ImageIcon anIcon = new ImageIcon(url);
    Where myClass is the name of your class file.
    V.V.

  • Problem with sendRedirect using relative URL in WebLogic 5.1 with SP7 & 8

    I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
              URL failed. The browser simply displayed "404 - Page not found".
              This problem only happens in a cluster environment attached to a web server.
              SP6 or earlier does not have such problem.
              I noticed that the latest SP always formats the URL and returns it as a full
              absolute URL to the browser. The problem is it uses the Weblogic Server host
              URL where the request is processed (not the Web Server host URL) which is
              not visible to the internet.
              Is it possibly a bug in SP?
              

    I patched to SP 7 (and also 8), and the request.sendRedirect() with relative
              URL failed. The browser simply displayed "404 - Page not found".
              This problem only happens in a cluster environment attached to a web server.
              SP6 or earlier does not have such problem.
              I noticed that the latest SP always formats the URL and returns it as a full
              absolute URL to the browser. The problem is it uses the Weblogic Server host
              URL where the request is processed (not the Web Server host URL) which is
              not visible to the internet.
              Is it possibly a bug in SP?
              

  • Inspector-Hyperlink-An External Page = a Relative URL?

    I'm on iWeb '08 and have a question that I simply can't find an answer too despite searching many failed searches.
    I'm using iWeb to publish to a folder, so that I can later ftp the finished site.
    In my site, I want to add a hyperlink to an external URL, however the URL: box seems to only allow absolute url's to be entered after selecting Link To: An External Page.
    Is that right? Am I missing something?
    How do I create a hyperlink with a relative URL?
    Thanks in advance,
    JPS

    I don't understand what you mean by relative url?
    To create a hyperlink to an external page, click on Inspector in iWeb and then click on Hyperlink. When in Hyperlink click on 'link to an external page' and then type in the url that you want to link to and you can also have it open as a new page.
    Not sure what else you are trying to do?

  • Resolve Relative URLs in Http response.

    I am using java.net package classes to make Http calls to get HTML, which I display in a page (using JSP). Problem is that there are relative paths in anchor, images etc and so links don't work and images don't display. I would like to know if there is any way to convert relative urls to absolute urls.
    Thanks
    rcr

    I have found that ColdFusion has a tag CFHTTP that converts relative url to absolute url (by giving arttribute resolveUrl="yes"). I wonder how they do it.
    http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p58.htm

  • Usage of relative url across site collections in sharepoint 2010

    Hi
    I have a webapplication with 2 sitecollections. In one sitecollection, created a link by going to navigation under sitesettings.
    Added relative url to map to 2nd site collection. Eg: /sites/site2/page1.aspx
    But by doing so, it is giving error. Help me out how to give relative url pointing to different site collection from another sitecolleciton.
    Thanks in advance
    Naina 

    Say, Site Collection 1 URL: http://sitecollection1.domain.com/
    Site Collection 2 URL : https://sitecollection2.domain.com/
    Now, on "Site Collection 1", In Site Actions-->Site Settings-->Navigation, when you use "relative URLs", it will always refer to the current Site Collection i.e Relative URL "/sites/site2" will always be "http://sitecollection1.domain.com/sites/site2".
    Anyways, what is the "requirement". What are you trying to solve by using "relative URL" for Site Collection 2 on Navigation of Site Collection 1. Reason for asking is, there might be different approach for your "requirement".
    Naveed.DG MCITP, MCTS -SharePoint 2010 Administrator "Vote As Helpful" If it helps!!

  • Relative URLs and Application Context

    How do you handle rendering relative URLs so that:
    1. Your application is independent of the application context it's deployed to
    2. You don't end up with lots of ugly code in your views
    3. The solution will work on any J2EE server
    I have several approaches, but I can't find any "best practices" discussions on this subject so I thought I'd start one.

    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    "> Home</a>
    My main problem with that is that it's ugly as sin.                                                                                                                                                                                                                                                                                                                                                                       

  • XSQL XML demos not finding relative URLs

    I finally have the XML demos running under OAS 4.0.8.1 (while waiting for IAS on NT) but none of the relative URL references in the demo files work unless I map a virtual path to every directory.
    Mapping /demo to e:\xsql\demo allows me to bring up the demo page listing all demos but none will work.
    If I then map /airport to e:\xsql\demo\airport the airport demo will work form the demo page.
    What is the proper set of virtual paths to map.
    Thanks,
    Rick Post
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rick Post:
    I finally have the XML demos running under OAS 4.0.8.1 (while waiting for IAS on NT) but none of the relative URL references in the demo files work unless I map a virtual path to every directory.
    Mapping /demo to e:\xsql\demo allows me to bring up the demo page listing all demos but none will work.
    If I then map /airport to e:\xsql\demo\airport the airport demo will work form the demo page.
    What is the proper set of virtual paths to map.
    Thanks,
    Rick Post
    <HR></BLOCKQUOTE>
    IAS 1.0 has Apache 1.3.x + Jserv 1.1, you could download this version for Windows NT from Apache Web Site. There aren't differences from IAS to Apache on windows NT except for Oracle iCache.
    Regards, Marcelo.
    null

  • External Link - relative url

    We recently upgraded from CM Patch 4 to Patch 28.  We have some KM External Link the point to iViews and we used the syntax /irj/servlet/prt/portal/prtroot/etc ....
    This worked fine in Patch 4, but now is expecting the http://server/ name to be included?  Has anybody else encountered this?
    Does anybody know of an alias I can use, e.g. - http://servername/irj/etc ...?

    HiJulian,
    Sorry I didn't explain the problem well enough the first time.
    An example is that I have an iView to an ESS transaction, but we wanted to be able to view it among other KM content.  We did this by geting the URL of the iView, creating an external link in the KM folder pointing to the iView on the same server.  To make it easier to move content bewtwen Dev,QA,and Prod, we used the relative URL's starting with /irj/etc... 
    In Patch4, this worked fine and it picked up the http://servername just fine.
    Now in Patch28, the resulting URL looks like http:///irj with the servername missing.
    Thanks,
    Mike Shroyer

  • I have created URL like sub domain. but URL which i have rewrite like sub-domain in that page This webpage is not available error showing.

    Is that any one Help me, here,
     i have created URL like aarti.domain.com using a particular code which i have add here,
    sub-domain URL is creating but This webpage is not available i am getting this error in sub-domain URL page.
    This is a code by which i have created a URL like sub-domain. its creating URL but page is not showing with data. 
    Any one can tell me whats Wrong here. 
    and how i can show data in my sub-domain url.
    Your solution will help me To solve This Big Issue.
    <rewrite>
    <rules>
    <rule name="Redirect to Subdomains" stopProcessing="true">
    <match url="^xyzPage.aspx$" />
    <conditions>
    <add input="{QUERY_STRING}" pattern="^barvalue=(.+)$" />
    </conditions>
    <action type="Redirect" url="http://{C:1}.{HTTP_HOST}" appendQueryString="false" />
    </rule>
    </rules>
    </rewrite>

    Please post questions related to ASP.NET and web development in the ASP.NET forums (http://forums.asp.net ).

  • ScriptBundles and application relative URLs

    I'm having trouble coming up with a way to bundle javascript files in my environment using .net's scriptbundles.  My environment is setup with one website and about 30 applications configured in IIS under this one site.  I also have about 20 or
    so different custom javascript libraries that provide various features or "widgets" to the applications.  The widget's .js files are located in folders at the root of the site.  Each application may use some or all of these widgets.
    While I have gotten the bundles to work for .js files that are local to each applcaition, I'd like to bundle together the .js files that are external to the application.  This would allow me take advantage of the minifying and help resolve any caching
    issues.
    Is there any way possible to not have to use application relative URLs?
    I have looked at trying to use the CDN option, but that doesn't work, because while in debug mode it tries to use a local version of the widget and there will never be a version local to the app, but there will always be one at the site root.
    I also noticed that you can override the .Include function of the ScriptBundle class.  Maybe there's an answer there, but I couldn't figure it out.
    It seems to me that constraining the files that can be included to just the files located in the application is poor judgment.

    Hello TroySim,
    It seems this issue is related with a web application, I suggest that you could post it to:
    http://forums.asp.net/
    The current forum you posted to is used to Discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.
    And anyway, it is glad to hear that you find a workaround for this issue.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Correctly combining an absolute and a relative URL

    Hello everyone!
    I've been messing around with combining absolute and relative URLS in java and have found the task to be a little more confusing than I originally thought. For example:
    /wallpapers/17i/Lotus_Exige_Mk_II,_2004.jpg
    http://wallpapers.diq.ru/ru/17__Peugeot_Moonster_Concept%2C_2001.html
    Firefox and other browsers see this as: http://wallpapers.diq.ru/wallpapers/17i/Lotus_Exige_Mk_II,_2004.jpg
    I don't understand why the /ru/ is taken out; and was wondering if there was already a class written in Java that combined urls, or if someone could explain to me why the end result is not http://wallpapers.diq.ru/ru/wallpapers/17i/Lotus_Exige_Mk_II,_2004.jpg
    Thanks

    The web page could have a <head> section that contains a [<base>|http://www.w3schools.com/tags/tag_base.asp].
    This specifies the base that will be used when resolving urls. It may not be the url of the page itself. For instance it could be that the "ru" bit collects together all the Russian langauge pages parallel to a "en" duplicate that has the same pages in English. Clearly both sets would want to access the same image resources so they have a <base> setting that points one level higher up.
    If this is the case and you want to get the url for the images you will have to parse the <head> of the web page and figure out what the <base>is.

  • Change relative URL of segments for HLS-VOD

    Simple Version:
    Can I change the URL of the TS segments delivered by the hlshttp_module in any way, or is it always relative to the requested m3u8 URL?
    Long Version:
    To try and protect my content from being accessed by third parties I want to use mod-auth-token, with a client inserted token in the request for the variant m3u8, and a server generated token in the HLS m3u8.
    My clients generate a token using a shared secret, and request the variant m3u8 from:
    https://myserver/hls-manifest/<clienttoken>/<hextime>/path/to/folder/manifest.m3u8
    This page is served dynamically (using php), and does not really have anything to do with FMS even though it is running in the same Apache instance. The m3u8 is generated with server tokens in the m3u8 URLs somethign like this:
    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=10240000,CODECS="mp4a.40.2, avc1.42001f"
    https://myserver/hls-vod/dc226454b9e39b9ffc44f9496505c70e/4ea6963f/path/to/folder/filename _1024k.mp4.m3u8
    I have installed mod-auth-token, and configured it on a LocationMatch for "^/hld-vod/(.*)\.m3u8$". Everything up to this works perfectly, and I can request both m3u8 playlists successfully. The problem is that the content of the m3u8 (the ts fragment URLs) are relative to the URL of the m3u8.
    #EXTM3U
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:NO
    #EXT-X-VERSION:2
    #EXT-X-KEY:METHOD=AES-128,URI="https://myserver/hls-key/vodkey.bin",IV=0X560417e9155f2f2cb1fb9410397db72e
    #EXT-X-TARGETDURATION:10
    #EXTINF:10,
    filename_1024k.mp4Frag1Num0.ts
    The player is attempting to request files from:
    https://myserver/hls-vod/dc226454b9e39b9ffc44f9496505c70e/4ea6963f/path/to/folder/filename _1024k.mp4Frag1Num0.ts
    I want this to look more like this:
    https://myserver/hls-vod/path/to/folder/filename_1024k.mp4Frag1Num0.ts
    or even this:
    http://mycacheserver/hls-vod/path/to/folder/filename_1024k.mp4Frag1Num0.ts
    So the m3u8 needs to look more like this:
    #EXT-X-TARGETDURATION:10
    #EXTINF:10,
    http://mycacheserver/hls-vod/path/to/folder/filename_1024k.mp4Frag1Num0.ts
    I can think of lost of placeswhere this would have  useful applications. There does not appear to be anything in the Developer documents which would help here. Does anybody have a suggestion for something I can try?

    Hi Michael,
    Thanks for using FMS 4.5 and its new features.
    However, there is no way to not to put relative urls for the ts files. However, you might like to do either Apache's "URL rewriting rules" or redirection . For rewriting rules, you might check http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
    Though, you may suffer in caching benefits. Here, if the id that you have inserted is on per client basis, you may not get the caching benefits on the caching server as it will always caching on basis of
    https://myserver/hls-vod/dc226454b9e39b9ffc44f9496505c70e/4ea6963f/pat h/to/folder/filename_1024k.mp4Frag1Num0.ts
    while, if you use client side redirect something like
    redirect 301 url1 url2
    it may help. You might consider other similar solutions for example, client redirect on proxy servers etc.. just be ware of caching in your case (if applicable)

Maybe you are looking for