Why location.url open window inside window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 11:32 PM
Hi,
Im trying to edit SC Catalog Item Req2RITM and if some conditions are met, redirect to the user using the client controller script directly to the RITM. For some reason, $location.url(link) opened window inside a window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 12:14 AM
Hi Alon,
I have not tried, but maybe this will work for you.
$window.open(url, "_blank");
You can use different URL Target Types (_blank, _self, _top) as per you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 01:06 AM
@Muhammad Khan not working...it does not open anything
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 01:11 AM
can you try:
$window.location.href
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2023 03:04 AM
@Prince Arora hi its not working. This is what Im getting: (I supposed to be redirect to the RITM page and not to Request page in the SOW):