Questions tagged [base-tag]

33 questions
487
votes
18 answers

What are the recommendations for html tag?

I've never seen HTML tag actually used anywhere before. Are there pitfalls to its use that means I should avoid it? The fact that I have never noticed it in use on a modern production site (or any site) makes me leery of it, though it seems…
Kzqai
  • 22,588
  • 25
  • 105
  • 137
13
votes
5 answers

React Router's HashRouter redirects to tag url

I have non-SPA server-side application with React application that is limited to current page, /some/static/page. The application has in on all pages and relies on it, this cannot be changed. Here is basic example with React…
Estus Flask
  • 206,104
  • 70
  • 425
  • 565
12
votes
7 answers

Url Hash with Html Base Tag

window.location.hash When using a link for a javascript action, I usually do something like this: Link Text That way, when someone clicks the link before the page loads nothing terrible happens. Html Base Tag On my current project I…
brad
  • 73,826
  • 21
  • 73
  • 85
7
votes
1 answer

HTML5 Tag with root relative url

Please help me understand the functionality of the tag's href attribute. I have a website hosted at http://goodsite.org/bob. other sites are hosted at http://goodsite.org/others. I am planning to move my application to…
Ynot
  • 561
  • 4
  • 10
6
votes
1 answer

"base href" adds directory path in routing urls using ui-router

Summary : When using , it adds the directory path in routing urls e.x. http://www.example.com/prod/public/home My angular app is hosted in the prod/public directory. in my public/index.html:
Debug Diva
  • 26,058
  • 13
  • 70
  • 123
5
votes
1 answer

Ignoring base tag after post

On Chrome I'm getting an error Refused to execute a JavaScript script. Source code of script found within request. after posting data that contains the name of the domain (also note the lack of javascript on either page) . badpage1.html:
Kendall Hopkins
  • 43,213
  • 17
  • 66
  • 89
4
votes
1 answer

How to make testcafe respect the `` tag

My application at some point injects tag into the website and after that creates a new