SPFX Application Customizer top navgation not opening in same tab - reactjs

I am using SPFX Application customizer for customized top menu bar.
It's working fine, except one issue. It's not opening in the same tab if using document library link with code target="_self".
However, with page links it's opening in the same tab.
Is there a way to open the new page in same tab, no matter if the link is for document library or page?

Related

Open all links in a new tab in PDF file created with pdfTron

I want to open all links from my PDF file generated with pdfTron and react in a new browser window. If I open the document with a PDF viewer and click on a link, it works fine as the link opens in a new browser tab. But if I initially open the PDF in the browser, when clicking on a link, the new page opens in the same tab and I need it to open on a new tab.
Adding target="_blank" on the <a> didn't help although this is working on the HTML template which is generated before the PDF file is created.
Doing it from native JS (using window.open) was also impossible.
Is there a way I can add an event listener maybe from pdfTron to tell all the links to open in a new tab? Please advise, thanks!
Unfortunately, you can't specify this in the PDF itself. You can, however, try modifying your links to point to an intermediate page which opens the link in a new tab. PDFTron has a guide on how to do something like this here:
https://community.pdftron.com/t/how-do-i-open-a-pdf-link-a-url-hypelink-in-a-new-browser-window/172

How to open a page without clicking on the menu link using Selenium C#

I want to open the Part Catalog page without clicking on the submenu link. How can I write the code to do that using Selenium C#.
This is because the menus links changes according to the user login and I cannot use the ID to expand the menu and click on the Submenu. Is there is a way just to open the Iframe inside the page using SRC ?
Please someone help me on this issue.
Thank you

Router.back() won't work in incognito mode or when link comes from different source

i am using Nextjs as react framework for my ecommerce website. My product detail page have an custom back button which is having Router.back() function. This works normal when browsing back and forth in website. But whenever i copy the product detail link and open directly in incognito mode the custom back button won't work...!!
Anyone have solution for this ?

Opening a pop up from angularjs partial page

I have an AngualarJS app that has an index page and some partial pages, displayed in ui-view. The app is using ui-routing. I have a button on the header (located on the index page) and on click of that button I want a small pop up open - a page displaying some data from the database, based on currently logged in user. I am trying to decide between opening a windows with window.open and sizing it to about 400x400 but that seems very un-elegant plus I see some issues with opening it. Another option I am entertaining is bootstrap ui modal but that would involve including bootstrap in my project on top of all the angular and routing includes.
Not sure if there is a better way to go, would appreciate any leads.
If you don't want to include bootstrap in your project You may use this one
--> http://www.dwmkerr.com/the-only-angularjs-modal-service-youll-ever-need/

KIK: How do I programatically open the sidebar?

Is there a way for me to open the sidebar using one of the buttons on my HTML5 app? I know KIK displays that "3 vertical dots" button/slider on the left for users to open the sidebar, but can I still trigger that using JavaScript?
There are no APIs to open the sidebar. Only the user can do so

Resources