0

I'm running this jade-based app locally and I've been trying to include a ejs file in it but I was unsuccessful. So I tried to convert my ejs file to jade and again my several attempts failed.

So I thought about just creating a HTML link that takes me to the ejs page on click. Problem is when I click it, nothing happens.

Here's how I made the link:

<a href="file:///home/ghanem/Documents/drywall-master/views/account/el.ejs">My Link</a>. 
ForceBru
  • 43,482
  • 10
  • 63
  • 98
Jesse James
  • 1,203
  • 5
  • 22
  • 39
  • Please note that HTML will be parsed when used in a question unless you post it as code. – ForceBru May 18 '15 at 09:21
  • Check you link first: file:///home/ghanem/Documents/drywall-master/views/account/el.ejs – ketan May 18 '15 at 09:22
  • When I type "file:///home/ghanem/Documents/drywall-master/views/account/el.ejs" in my browser I get redirected to the file. But strangely enough the html link doesn't take me anywhere. – Jesse James May 18 '15 at 09:26

2 Answers2

1

Linking to local resources is disabled in all modern browsers due to security restrictions.

See this answers for more details.

Community
  • 1
  • 1
ketan
  • 19,129
  • 42
  • 60
  • 98
-1

check if the link is really file:/// or you can use double dot notation in your link

example:

../views/account/el.js

Hope it helps

Derek Anas
  • 37
  • 9