Questions tagged [relative-url]

A URL that is relative to another URL.

For example "image/logo.gif" is a relative URL, which full path can only be resolved by taking into account its parent URL. For example if a document is located at http://example.com/test, the full URL of that image would be http://example.com/test/image/logo.gif.

132 questions
3
votes
3 answers

HTML: Relative Link without Parameters

I have a page name index.php. It is in the folder name test. So if I call localhost/test I can see the page. I have links in the page that pass parameters: Link1 Link2 So the URL is localhost/test/?id=1 After…
Vahid
  • 3,384
  • 2
  • 35
  • 69
2
votes
1 answer

Is there a way to rewrite all relative URL:s when inserting a HTML fragment in jQuery?

I'm loading a HTML fragment into a page using a jQuery AJAX call. The fragment is loaded from a separate directory on the server and I want to be able to reuse it (with its links to scripts and images) in different locations. Is there a safe way…
SoftMemes
  • 5,602
  • 4
  • 32
  • 61
2
votes
1 answer

make_links_absolute() results in broken absolute URLs

I need to convert relative URLs from a HTML page to absolute ones. I'm using pyquery for parsing. For instance, this page http://govp.info/o-gorode/gorozhane has relative URLs in the source code, like
DemX86
  • 422
  • 1
  • 5
  • 10
2
votes
1 answer

Set relative link / anchor in R Shiny

I would like to create a drillable graphic that links to other places in my Shiny App. library(tidyverse) library(shiny) library(shinydashboard) ui <- dashboardPage( dashboardHeader(title="My Fitness Dashboard",titleWidth…
Susan Switzer
  • 1,531
  • 8
  • 34
2
votes
1 answer

How to set relative base URL in angular

Hi I checked answers around but none worked for me as expected, basically the problem is that I want to set my URLs protocol and domain name dynamically in angular service. Here's my code for example: baseUrl: string =…
Kerk
  • 283
  • 1
  • 4
  • 24
2
votes
2 answers

XSLT append URL from relative to absolute

In my XML document, I am pulling the content of a that contains images. The XML shows: twitter When I view the page, the image doesn't show up because it is not at the same path as…
jrottier
  • 103
  • 1
  • 9
2
votes
1 answer

How can I create a relative URL location for my form?

I'm learning about forms in HTML. At the moment I've written this part of my code:

Favourite Colour:

What I'm trying to…
Edwarric
  • 513
  • 2
  • 9
  • 19
2
votes
0 answers

How to go up one level in javascript (when using Ajax.open)

What is the code for going up one level in javascript? I'm using Ajax. var ajax = new XMLHttpRequest(); ajax.open("POST", "goUpOneLevel/php/mail.php", true); Like in CSS, while setting background URL, to go up one level we use '../' But in the…
Rohit Kumar
  • 2,048
  • 1
  • 14
  • 28
2
votes
1 answer

relative path for websockets

I have installed Apache2.2.22 and nodejs 0.10.12 succesfully in windows server 2012 r2. I succesfully made node a windows service, using nssm, so it will always run. Node "lives" in 8000 port and I have installed a proxy in apache's httpd.conf like…
slevin
  • 4,166
  • 20
  • 69
  • 129
2
votes
1 answer

ASP.NET MVC server path is different from application path

I have an unusual circumstance where our web server inserts a folder into the url path before loading the page. Let me give you an example: The app is called equipment and if I were to run it on a normal server setup, it would look…
user441058
  • 1,188
  • 1
  • 16
  • 32
2
votes
5 answers

Switch to SSL using a relative URL

I would like to create a relative link that switches the current protocol from http to https. The last place I worked had something set up on the server so that you could make that happen, but I don't remember much about it and I never knew how it…
Shea Daniels
  • 3,232
  • 3
  • 23
  • 27
2
votes
1 answer

.htaccess rewrite without it affecting relative image/css/js URLs?

I need some simple help with my htaccess file, thank you in advance. I have a number website URLs, such as: www.site.com/index.php?page_path=solutions-overview.html www.site.com/index.php?page_path=solutions-a.html I want to use the RewriteEngine…
ghilton
  • 127
  • 1
  • 3
  • 12
2
votes
2 answers

relative url to new complete url

I have a basu uri and a relative one that am try to create new one from. i did try the examples here, but there seems to be a bug. if i have a baseUrl as http://ww.baseurl.com/somedir and i try to create an absolute path adding /login.php or…
Smith
  • 5,765
  • 17
  • 102
  • 161
2
votes
1 answer

Is it a bad practice to use relative urls with an explicit base?

Is it a bad practice to use relative urls with explicit base for dynamic site? For example, like this one: ... I need it because mount point of site can be…
Alex Craft
  • 13,598
  • 11
  • 69
  • 133
2
votes
1 answer

What is the difference between / and ~/ relative paths?

I thought that both types would bring you to the root folder, but apparently, they work differently, once you do a URL rewrite. For instance, I normally use / which I know will bring you to the root folder and it does when a URL has been…
Anna
  • 239
  • 1
  • 7
  • 21
1 2
3
8 9