Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Enhancement: for opening the url in same window #1

Closed
rahulravindran0108 opened this issue Aug 8, 2016 · 2 comments
Closed

Enhancement: for opening the url in same window #1

rahulravindran0108 opened this issue Aug 8, 2016 · 2 comments

Comments

@rahulravindran0108
Copy link

I would love to route the link in the same target window. Maybe have another property in the json for this ?

window.open(button.url.replace(re, function(matched) {
                        return mapping[matched];
                    }), button.window ? "_self" : "_blank");
@Simran-B
Copy link
Owner

Simran-B commented Aug 8, 2016

This should do: e5374ec

In book.json, you can set a target for every link. Set this to _self to make it change the browser location instead of opening a new window / tab.

@Simran-B Simran-B closed this as completed Aug 8, 2016
@rahulravindran0108
Copy link
Author

@Simran-B Thanks

Simran-B pushed a commit that referenced this issue Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants