Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Seamlessly scroll through unlimited rows and columns in your {Platform} grid, wi
title="Quick and Easy to Customize, Build and Implement"
description="The Ignite UI {Platform} Data Grid can handle unlimited rows and columns of data, while providing access to custom templates and real-time data updates. Featuring an intuitive API for easy theming and branding, you can quickly bind to data with minimal code."
label="View Samples"
href="data-grid.md"
href="data-grid"
/>

<Feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ h3#excel-library-for-the-angular-grid ~ h3{
title="Quick and Easy to Customize, Build and Implement"
description="The Ignite UI {Platform} Data Grid can handle unlimited rows and columns of data, while providing access to custom templates and real-time data updates. Featuring an intuitive API for easy theming and branding, you can quickly bind to data with minimal code."
label="View Samples"
href="data-grid.md"
href="data-grid"
/>
<hr style="border: .5px solid #ccc;" />
<igc-divider></igc-divider>
Expand Down
7 changes: 6 additions & 1 deletion src/components/mdx/CtaArea/CtaArea.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ interface Props {

const { title, description, label, href, note, logo = true, variant = 'default', backgroundImage, overlay } = Astro.props;

const base = import.meta.env.BASE_URL.replace(/\/$/, '');
const resolvedHref = href.startsWith('/') && !href.startsWith('//')
? `${base}${href}`
: href;

const resolvedLogo = logo === true ? logoUrl : (typeof logo === 'string' ? logo : null);
const isHorizontal = variant === 'horizontal';

Expand Down Expand Up @@ -60,7 +65,7 @@ const overlayColor = typeof overlay === 'string' ? overlay : undefined;
{description && <p class="cta-area__description">{description}</p>}
</div>
<div class="cta-area__action">
<a class="cta-area__btn no-external-icon" href={href}>{label}</a>
<a class="cta-area__btn no-external-icon" href={resolvedHref}>{label}</a>
{note && <p class="cta-area__note">{note}</p>}
</div>
</div>
Expand Down
Loading