Load router component

Can i load my router component from an outside link?

Something like:

http://domain.com/giftcard/

view setup look like this

var mainView = app.views.create(’.view-main’, {
url: ‘/’
})

Yes, you need to enable pushState parameter on View https://framework7.io/docs/view.html#view-parameters

Can this be set for a single route only?

You can set pushState: false in route’s options object https://framework7.io/docs/routes.html#route-options on other routes. But there is no much sense in such logic. If you need for a single route, it is better to check manually document.location.href and load required page i guess

I did run document.location.href in the router component but of course I only get the the base path http://server.com/ not http://server.com/{component-link}