mattmilburn/strapi-plugin-preview-button

Open preview page in new tab, instead of replacing already opened tab

Closed this issue ยท 3 comments

Is it possible to add possibility to open 'preview' page always in new tab (not just replace the opened tab)?

I think we can remove (or make optional) the target prop (PREVIEW_WINDOW_NAME) in window.open( url, PREVIEW_WINDOW_NAME );

Code:
https://github.com/mattmilburn/strapi-plugin-preview-button/blob/staging/admin/src/components/PreviewButton/index.js#L19

Hi @Krak86 This option seems reasonable. I will include this in an upcoming release ๐Ÿ‘๐Ÿป

@Krak86 There is a new release for v1.0.1 which includes a new openTarget config option that should help you out ๐Ÿ‘๐Ÿป You should set it to _blank. Here it is described in the README.

@Krak86 There is a new release for v1.0.1 which includes a new openTarget config option that should help you out ๐Ÿ‘๐Ÿป You should set it to _blank. Here it is described in the README.

Awesome, man! Many thanks ๐Ÿ‘