My Oracle Support Banner

An Asset with multiple Vanity URL Set As Default is not working because method includeLinks(true) in AssetReader API does not return default URL (Doc ID 2308535.1)

Last updated on DECEMBER 06, 2022

Applies to:

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

Symptoms

There are three different vanity URLs (one is autogenerated), and set one of them to be the default one. The issue is that no matter which URL is set as the default one, the following controller code always returns the same URL, which is not the one we have set.

Map assetMap = newAssetReader()
.forAsset(getAssetId())
.select("name,subtype,id")
.forLocale("el_GR")
.immediateOnlyAttributes(false)
.includeLinks(true)
.read();

models.put("canonicalurl",assetMap._link_);

In other words, the method includeLinks(true) in AssetReader API does not return default URL

 

Changes

 

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
Changes
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.