Unable to Change Status of Vanity URL that Redirects (301 or 302) To another Vanity URL for the same Asset
Last updated on JULY 06, 2017
Applies to:Oracle WebCenter Sites - Version 188.8.131.52.0 and later
Information in this document applies to any platform.
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)
e) Click Change Status on page2 vanity url and set the following:
- HTTP Status: 301
- Redirect To: (Choose page1 from the radio button options)
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.
- 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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms