My Oracle Support Banner

Unable to Change Status of Vanity URL that Redirects (301 or 302) To another Vanity URL for the same Asset (Doc ID 2105724.1)

Last updated on NOVEMBER 01, 2022

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

Unable to Change Status of Vanity URL that Redirects To another Vanity URL for the same Asset

Steps to replicate issue:

1. Login to avisports Contributor UI

2. Create a new Page asset:
  - Name: TestPage1 (select HomeLayout)
  a) Switch to Form mode
  b) Click on the URL tab
  c) Create two new vanity urls for this Page:
  - URL: page1
  - URL: page2
  d) Click Change Status on page1 vanity url and set the following:
  - HTTP Status: 301
  - Redirect To: (Choose page2 from the radio button options)
  (Click Apply)
  e) Click Change Status on page2 vanity url and set the following:
  - HTTP Status: 301
  - Redirect To: (Choose page1 from the radio button options)
  (Click Apply)
  f) Save TestPage1 asset
  
3. Attempt to delete either vanity URL by clicking the "Delete" link next to that url:
  - Observed behavior: You will receive the following error for both "This URL is a redirect for some other URL.It cannot be deleted" because they both have a redirect to themselves. So, naturally, the proper method for resolving the situation would be to remove the redirect by Changing the Status of the vanity urls to no longer point to the other url and then you would be able to Delete.
 
4. Attempt to edit each vanity url to remove the redirect by clicking "Change Status" link next to vanity url.
  - Observed behavior: Nothing will happen in the UI. If you check the web browser console when clicking the "Change Status" link, you will see a javascript error: "ReferenceError: inputRedirectWebRoot is not defined"
 
 
Additional observations:
- This issue does not occur for redirects to vanity urls of other assets because there is no radio button option to select those other vanity urls. Therefore, it seems that the direct reference is not made and the referencing redirect restriction does not prevent those urls from being deleted.
- It appears that the "Change Status" only fails when the vanity URL status is set to 301 or 302 and the redirected url is set to one of the populated urls listed in the radio button options (not the manually specified field). After setting the status to 301 or 302 and selecting one of the populated urls from the radio button options and clicking apply the Change Status link no longer functions and the error "ReferenceError: inputRedirectWebRoot is not defined" is seen in the web browser console.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.