-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Portfolio site leads to 404 #149
Conversation
@novellac The next step is to find where to wrap the url with this function once you approve of the function. |
e681ba9
to
0208bdb
Compare
0208bdb
to
78113f7
Compare
// methods: { | ||
// validUrl | ||
// }, | ||
// computed: { | ||
// portfolioUrl() { | ||
// // return this.validUrl(member.node.contact_links.portfolio_url) | ||
// } | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Remove these unused methods.
@@ -16,13 +16,13 @@ | |||
/> | |||
<a | |||
v-if="$page.biopost.contact_links.email" | |||
:href="`mailto:${$page.biopost.contact_links.email}`" | |||
href="`mailto:${$page.biopost.contact_links.email}`" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we still want the email to be dynamic, so keep the :
on the href
.
* Our CMS does not validate urls, | ||
* urls are entered in manually by the author, | ||
* so this is to ensure a valid url to navigate to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compliment: I like your explanation here, it gives great context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Approved, pending resolution of the comments below.
This PR fixes...
This PR fixes #147. Appends 'https://' to the urls that do not have 'http://' or 'https://' so that the link navigates to the site instead of 404 error page.
What I did...
How to test...