Reputation: 7304
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
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
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