deinonychusaur
deinonychusaur

Reputation: 7304

Redirect HTML-page using meta refresh over symbolic link

I have a simple place-holder html-file that I would want to use the header meta tag to redirect automatically. The target is a symolic link (linux) that points to a git-repo directory.

<meta http-equiv="refresh" content="0; url="universitetet/">

However this simply reloads itself. Giving absolute path does so too.

However, using the javascript solution works (and also normal links work fine).

<script language="javascript">
     window.location = "universitetet/";
</script>

Upvotes: 0

Views: 462

Answers (2)

Al-Mothafar
Al-Mothafar

Reputation: 8219

This code:

<meta content="0; url=(YOUR_LINK)" http-equiv="REFRESH">

Working with me, btw your code have issue with quotations: here content="0; url="universitetet/".

Upvotes: 0

Rob W
Rob W

Reputation: 349042

Get rid of the extra " inside the content attribute.

<meta http-equiv="refresh" content="0; url=universitetet/" />

Side note: Always provide a plain HTML link (<a href="universitetet/">Link</a>), in case the user has disabled meta redirection and/or JavaScript.

Upvotes: 1

Related Questions