Hello all,
I've got an HTML page with some internal links is the form of
<a href="#no1">
I'm also using (or trying to use) the BASE tag, so that all relative external links will actually resolve to another webpage.
The problem is that the above "#no1" internal link *also* tries to resolve to an external webpage - where want to keep it in the current one.
Is there a way to do that ? (other than making all external links absolute I mean :-) )
Regards,
Rudy Wieser
On Tue, 2 Jun 2026 19:27:29 +0200, R.Wieser wrote:
Hello all,
I've got an HTML page with some internal links is the form of
<a href="#no1">
I'm also using (or trying to use) the BASE tag, so that all relative
external links will actually resolve to another webpage.
The problem is that the above "#no1" internal link *also* tries to resolve >> to an external webpage - where want to keep it in the current one.
Is there a way to do that ? (other than making all external links absolute
I mean :-) )
Regards,
Rudy Wieser
With pure HTML? No.
<base> defines & overrides the base URL for all relative URL references in the current page.
The default base URL is the current page's URL minus anchor/hash.
Mere `#here` URL is a relative URL. i.e. relative to the current page.
The problem is that the above "#no1" internal link *also* tries to
resolve to an external webpage - where want to keep it in the
current one.
Is there a way to do that ? (other than making all external links
absolute I mean :-) )
With pure HTML? No.
<base> defines & overrides the base URL for all relative URL references
in the current page.
JJ,
The problem is that the above "#no1" internal link *also* tries to
resolve to an external webpage - where want to keep it in the
current one.
Is there a way to do that ? (other than making all external links
absolute I mean :-) )
With pure HTML? No.
<base> defines & overrides the base URL for all relative URL references
in the current page.
I was already afraid of that.
Though its a bit odd to me that a link starting with "#" (read: no
relative path preceeding it) isn't recognised as being internal.
Oh well.
Regards,
Rudy Wieser
Though its a bit odd to me that a link starting with "#" (read: no
relative path preceeding it) isn't recognised as being internal.
Hash is part of URL components which are:
protocol, host name/IP, port, path, variables, hash.
Hash is part of URL components which are:
protocol, host name/IP, port, path, variables, hash.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 70 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 39:14:29 |
| Calls: | 948 |
| Calls today: | 2 |
| Files: | 1,325 |
| Messages: | 280,644 |