Skip to content

Commit 452e3cb

Browse files
Update en/theme/material/templates/connectors.html
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5e4cf1e commit 452e3cb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

en/theme/material/templates/connectors.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ <h1 class="md-typeset">Connectors</h1>
6262
</a>
6363
{% endif %}
6464
{% if connector.documentation_link %}
65-
<a class="tooltip source-link md-icon md-icon--hover" href="{% if connector.documentation_link.startswith('http') %}
66-
{{ connector.documentation_link }}
67-
{% else %}
68-
{{ config.extra.base_path }}/connectors/{{ connector.documentation_link }}/overview/
69-
{% endif %}" {% if connector.documentation_link.startswith("https://") %}target="_blank" rel="noopener noreferrer"{% endif %}>
65+
{% set doc_url = connector.documentation_link if connector.documentation_link.startswith('http') else config.extra.base_path ~ '/connectors/' ~ connector.documentation_link ~ '/overview/' %}
66+
<a class="tooltip source-link md-icon md-icon--hover" href="{{ doc_url }}" {% if connector.documentation_link.startswith('http') %}target="_blank" rel="noopener noreferrer"{% endif %}>
7067
{% include "/assets/images/icons/book-16.svg" %}
7168
<span class="tooltip-text">Documentation</span>
7269
</a>

0 commit comments

Comments
 (0)