Merge pull request #750 from chandiwalaaadhar/fix/work-experience-website-link-redirects-404

Fixed URL 404 issue in Profile Section URL
This commit is contained in:
Amruth Pillai
2022-03-21 08:32:08 +01:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ export const MastheadSidebar: React.FC = () => {
</DataDisplay> </DataDisplay>
{profiles.map(({ id, username, network, url }) => ( {profiles.map(({ id, username, network, url }) => (
<DataDisplay key={id} icon={getProfileIcon(network)} link={url} className="!gap-2 text-xs"> <DataDisplay key={id} icon={getProfileIcon(network)} link={url && addHttp(url)} className="!gap-2 text-xs">
{username} {username}
</DataDisplay> </DataDisplay>
))} ))}

View File

@ -57,7 +57,7 @@ export const MastheadSidebar: React.FC = () => {
</DataDisplay> </DataDisplay>
{profiles.map(({ id, username, network, url }) => ( {profiles.map(({ id, username, network, url }) => (
<DataDisplay key={id} icon={getProfileIcon(network)} link={url} className="!gap-2 text-xs"> <DataDisplay key={id} icon={getProfileIcon(network)} link={url && addHttp(url)} className="!gap-2 text-xs">
{username} {username}
</DataDisplay> </DataDisplay>
))} ))}

View File

@ -49,7 +49,7 @@ export const MastheadSidebar: React.FC = () => {
</DataDisplay> </DataDisplay>
{profiles.map(({ id, username, network, url }) => ( {profiles.map(({ id, username, network, url }) => (
<DataDisplay key={id} icon={getProfileIcon(network)} link={url} className="text-xs"> <DataDisplay key={id} icon={getProfileIcon(network)} link={url && addHttp(url)} className="text-xs">
{username} {username}
</DataDisplay> </DataDisplay>
))} ))}

View File

@ -47,7 +47,7 @@ const Masthead = () => {
<DataDisplay icon={<Room />}>{formatLocation(location)}</DataDisplay> <DataDisplay icon={<Room />}>{formatLocation(location)}</DataDisplay>
{profiles.map(({ id, username, network, url }) => ( {profiles.map(({ id, username, network, url }) => (
<DataDisplay key={id} icon={getProfileIcon(network)} link={url}> <DataDisplay key={id} icon={getProfileIcon(network)} link={url && addHttp(url)}>
{username} {username}
</DataDisplay> </DataDisplay>
))} ))}

View File

@ -50,7 +50,7 @@ const Masthead: React.FC = () => {
</DataDisplay> </DataDisplay>
{profiles.map(({ id, username, network, url }) => ( {profiles.map(({ id, username, network, url }) => (
<DataDisplay key={id} icon={getProfileIcon(network)} link={url} className="text-xs"> <DataDisplay key={id} icon={getProfileIcon(network)} link={url && addHttp(url)} className="text-xs">
{username} {username}
</DataDisplay> </DataDisplay>
))} ))}

View File

@ -44,7 +44,7 @@ export const MastheadSidebar: React.FC = () => {
</DataDisplay> </DataDisplay>
{profiles.map(({ id, username, network, url }) => ( {profiles.map(({ id, username, network, url }) => (
<DataDisplay key={id} icon={getProfileIcon(network)} link={url} className="text-xs"> <DataDisplay key={id} icon={getProfileIcon(network)} link={url && addHttp(url)} className="text-xs">
{username} {username}
</DataDisplay> </DataDisplay>
))} ))}