Forum Discussion

1cookie's avatar
1cookie
Occasional Contributor
5 years ago

Adding a URL in topbar

Hi,

I'm using the standalone version of swagger UI:

const ui = SwaggerUIBundle({
	url: "openapi.json",
	dom_id: '#swagger-ui',
	deepLinking: true,
	presets: [
	  SwaggerUIBundle.presets.apis,
	  SwaggerUIStandalonePreset
	],
	plugins: [
	  SwaggerUIBundle.plugins.DownloadUrl
	],
	layout: "StandaloneLayout"
})

 

So, on the front-end and in the generated HTML, we get markup like:-

<div class="topbar-wrapper">
	<a rel="noopener noreferrer" class="link">
		<img/>
	</a>
</div>

Question, is there an easy setting to replace the noopener norefferrer with a link:

<a href="http://mydomain.com"></a>

 say. Or do I have to use a Javascript hack?

 

Thanks

 

No RepliesBe the first to reply