I want to get all the URL of currently opened tabs in my apex class. If anyone can guide a bit or have little knowledge how to make it possible, Please let me know.
2 Answers
You cannot get all the tabs, only the current one. For that, you can try using this: ApexPages.currentPage().getUrl()
More information here
-
That will only get the current tab though, the question was for all the open tabs which presumably can include anything that is in the browser. Commented Feb 11, 2016 at 16:45
-
Ooops. Read the title and not the text. Amended my answer. Commented Feb 11, 2016 at 16:45
I'm afraid that this just isn't possible. Apex is completely separate from the browser. Apex has no knowledge of the client's environment.
Getting client information (and then passing that information to something like an Apex controller extension) requires Javascript. That's a gross oversimplification but, that said, Javascript doesn't have that kind of access either.
This would be a huge security issue if it were possible.
Apex
? That context doesn't even make any sense for this question.