Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.5. Authoring - 'New Tab' behavior

Avatar

Avatar
Validate 1
Level 1
dbasic
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
dbasic
Level 1

Like

1 like

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
dbasic
Level 1

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
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
Anudeep_Garnepudi
MVP

Likes

275 likes

Total Posts

320 posts

Correct Reply

87 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Anudeep_Garnepudi
MVP

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
Validate 1
Level 2
SwonVIP
Level 2

Likes

7 likes

Total Posts

9 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
SwonVIP
Level 2

Likes

7 likes

Total Posts

9 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
SwonVIP
Level 2

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
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,428 likes

Total Posts

3,300 posts

Correct Reply

937 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
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
Validate 1
Level 4
Sandeep6
Level 4

Likes

56 likes

Total Posts

66 posts

Correct Reply

15 solutions
Top badges earned
Validate 1
Give Back
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 4
Sandeep6
Level 4

Likes

56 likes

Total Posts

66 posts

Correct Reply

15 solutions
Top badges earned
Validate 1
Give Back
Boost 50
Boost 5
Boost 3
View profile
Sandeep6
Level 4

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.