I've passed correct url but lightbox displays message: Invalid file!
You've most likely used external url without CORS enabled so lightbox cannot detect its type automatically.
There are two ways to fix it:
- you can put source you want to display on your server
- you can specify source type manually using types prop. More...
Lightbox doesn't detect new <a> tags.
Check out refreshFsLightbox function: link.