AEM 6.5. Authoring - 'New Tab' behavior

Avatar

Avatar

dbasic

Avatar

dbasic

dbasic

23-10-2020

Hi everybody,

 

Is there any way to prevent the following behavior in AEM (AEM 6.5):

1) login and go to Sites console

2) select some page and click on Page Properties button. Page Properties form is loaded in the current browser tab

3) click on Cancel button inside Page Properties form

Actual behavior: Sites Console is opened in a new browser tab, and in the current browser tab Page Properties form is still present

Expected behavior: Sites Console should be opened in the current browser tab

 

The same behavior is present in Create Page wizard. By clicking Cancel button in the first step, Sites Console is opened in the new browser tab instead of the current one.

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

26-10-2020

Hi @dbasic 

AEM will not add _target=blank attribute. Check the following

  1. granite/ui/components/shell/propertiespage/propertiespage.jsp anchor tag attributes
  2. Check the java script files loading on page, as @Arun_Patidar said verify if there are any non OOTB scripts are loading on pageScreenshot 2020-10-26 at 2.25.28 PM.png 

As cancel button is the only anchor tag on those two pages, might need to do debug deep.

-AG

Answers (3)

Answers (3)

Avatar

Avatar

SwonVIP

Avatar

SwonVIP

SwonVIP

26-10-2020

Hello there!

Default OOTB behavior on a fresh 6.5 instance should actually be the way like you have described it. Never had any issues with it. Maybe you got some browser extensions for that? Have you also tried it with another user in the Incognito browser tab?


In general my advice would be to never customize functions like this since it might lead to a lot of issues also in conjunction with product updates. You should stay as close as possible to the OOTB behavior AEM-wise at least.

Greetings!

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

25-10-2020

Is there javascrip or jquery which converting all the links and adding target=_blank attribute?

Can you try in another browser?

Avatar

Avatar

Sandeep6

Avatar

Sandeep6

Sandeep6

23-10-2020

Hi @dbasic ,

 

I am also using AEM 6.5.

I am not facing anything what you explained in your query. For me Sites Console is opening  in the current browser tab after clicking on cancel button  in both the cases.. Please check if you are clicking cancel button with ctrl.

 

Thanks,

Sandeep.