Skip to content
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

[CAL-3702] Back to Homapage flow not working #15021

Closed
ashi9ue opened this issue May 14, 2024 · 3 comments · Fixed by #15028
Closed

[CAL-3702] Back to Homapage flow not working #15021

ashi9ue opened this issue May 14, 2024 · 3 comments · Fixed by #15028
Assignees
Labels
High priority Created by Linear-GitHub Sync 📉 regressing This used to work. Now it doesn't anymore.
Milestone

Comments

@ashi9ue
Copy link

ashi9ue commented May 14, 2024

Found a bug? Please fill out the sections below. 👍

Issue Summary

On clicking the profile icon, the site doesn't go back to the profile homepage where all the meetings are listed. Earlier it used to.

Steps to Reproduce

  1. Went to https://cal.com/urbanfarms
  2. Clicked on a meeting. Example: https://cal.com/urbanfarms/movie-under-the-stars?date=2024-05-24&month=2024-05
  3. Clicked on profile icon on top-left

image

  1. The site went to a 404 page

image

Actual Results

  • Clicking on profile icon is taking to a 404 page

Expected Results

  • Clicking on profile icon should take to profile homepage

Technical details

  • Browser: Safari version 16.6 | Chrome Version 124.0.6367.201

Evidence

attaching screen recording

cal.dot.com-homepage.redirect.issue.LR.mov

From SyncLinear.com | CAL-3702

Copy link

dosubot bot commented May 14, 2024

It looks like the issue with the profile icon not redirecting to the profile homepage might be related to a recent change in how user profiles are handled, especially in scenarios without an organization context or for non-organization users. This could lead to a situation where the profile might not be found, resulting in a 404 error.

To address this, you should check the following:

  1. Environment Variable: Ensure NEXT_PUBLIC_WEBAPP_URL is correctly set in your deployment environment. This variable should accurately reflect the base URL of your web application.

  2. Profile Icon Link: The link should dynamically use NEXT_PUBLIC_WEBAPP_URL, appending the necessary path to navigate to the user's profile homepage. For example, use const profileUrl = \${process.env.NEXT_PUBLIC_WEBAPP_URL}/user/profile`;` to construct the URL, adjusting the path as needed.

  3. Redirection Logic: If using JavaScript for redirection, ensure window.location.assign(profileUrl) or a similar method is correctly implemented to navigate users to their profile page.

  4. Routing: Verify that client-side routing (if used) correctly defines the route to the profile page, with no mismatches or typos in the route's path.

  5. Debugging: After implementing changes, test the profile icon link across different environments (development, staging, production) to confirm it redirects correctly.

This approach should help resolve the redirection issue to the 404 error page. If you encounter further issues or need more assistance, feel free to ask.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the 📉 regressing This used to work. Now it doesn't anymore. label May 14, 2024
@Udit-takkar Udit-takkar added this to the v4.2 milestone May 14, 2024
@Udit-takkar Udit-takkar changed the title Back to Homapage flow not working [CAL-3702] Back to Homapage flow not working May 14, 2024
@Udit-takkar Udit-takkar added the High priority Created by Linear-GitHub Sync label May 14, 2024
@ninadvyas
Copy link

Hello I would like to work on this issue.

@Udit-takkar Udit-takkar self-assigned this May 22, 2024
@ashi9ue
Copy link
Author

ashi9ue commented May 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High priority Created by Linear-GitHub Sync 📉 regressing This used to work. Now it doesn't anymore.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants