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

🐛 Weird /tom redirect behaviour #534

Closed
3 tasks done
bradystroud opened this issue Sep 12, 2023 · 11 comments
Closed
3 tasks done

🐛 Weird /tom redirect behaviour #534

bradystroud opened this issue Sep 12, 2023 · 11 comments
Assignees

Comments

@bradystroud
Copy link
Member

bradystroud commented Sep 12, 2023

https://www.ssw.com.au/people/tom/ takes me to Tom I's page
https://www.ssw.com.au/people/tom takes me to Tom B's page

Tasks

@tiagov8
Copy link
Member

tiagov8 commented Sep 14, 2023

cc @tombui99


PS. I think we should disencourage the use of nicknames in the URL...

@Aibono1225
Copy link
Member

Aibono1225 commented Sep 20, 2023

Option 1: Remove the shortcut if there are two identical names. (minor changes to the Rules content)
https://www.ssw.com.au/people/thomas-iwainski to Tom I
https://www.ssw.com.au/people/tom-bui to Tom B
https://www.ssw.com.au/people/tom

Option 2: Do not use nicknames in the URL anymore. (big changes to the Rules content):
https://ssw.com.au/people/kaique-biancatti
https://ssw.com.au/people/kiki

Option 3: Whether or not there is a slash at the end of the URL, it should navigate to the page of the people who have that nickname
https://www.ssw.com.au/people/tom to Tom I
https://www.ssw.com.au/people/tom/ to Tom I
https://www.ssw.com.au/people/tom-bui to Tom B
https://www.ssw.com.au/people/tom-bui/ to Tom B

As per my conversation with @bradystroud , we have decided to go for option 1. 🙂

@Aibono1225
Copy link
Member

Why is this the behavior?

We have an incorrect redirect rule in https://ssw.com.au/people/rewritemaps.xml: <add key="/people/tom" value="/people/tom-bui"/>

As a result, entering /people/tom in the URL take us to Tom B's page, while entering people/tom/ takes us to Tom I's page due to the default setting.

image

@tiagov8
Copy link
Member

tiagov8 commented Sep 28, 2023

Hi @Aibono1225 / @bradystroud

FYI - I think Option 2 is the way to go.

See related Issue: #541
And another one with problems caused by nicknames: SSWConsulting/SSW.Rules#870

  • Can we have a list of ALL nicknames URLs we have? (so we have an idea of how much is there to fix)

@bradystroud
Copy link
Member Author

@tiagov8

⚠️ Option 2 will break a lot of existing links, outside of just rule content
Going forward, I dont think we should allow anyone to create nickname links but we should keep the old ones alive

Hey @Aibono1225

  1. Please update any docs/SL items that mention adding nicknames

@tiagov8
Copy link
Member

tiagov8 commented Sep 29, 2023

Hi @Aibono1225 / @bradystroud

Even if we are not changing the existing nicknames, can we have a list of who are using nicknames?
Maybe have that list in the Wiki and link to it from the SugarLearning.

I think it's important to:

  • Potentially find other similar nicknames
  • Possibly remove at least the ones for alumni or people that don't have many rules

@Aibono1225
Copy link
Member

Aibono1225 commented Oct 8, 2023

Hi @tiagov8 ,

Here is a list of URLs that use nicknames:

/people/sample/
/people/cammy/
/people/alumni/dave/
/people/dhruv/
/people/alumni/gabe/
/people/jk/
/people/jim/
/people/kiki/
/people/alumni/lachie/
/people/alumni/marni/
/people/mehmet/
/people/alumni/mike/
/people/penny/
/people/alumni/seb/
/people/alumni/taq/
/people/toby/
/people/uly/
/people/alumni/will/

This list was generated by filtering the content of https://ssw.com.au/people/rewritemaps.xml 😉

Hi @bradystroud ,

  1. Please update any docs/SL items that mention adding nicknames

I've checked docs and SL but couldn't find any infos about adding nicknames in the frontmatter. So I've updated this wiki to include a warning: https://github.com/SSWConsulting/SSW.Rules.Content/wiki/How-to-Add-an-Acknowledgment 🙂

@tiagov8
Copy link
Member

tiagov8 commented Oct 10, 2023

Hi @Aibono1225

I want to make this list shorter and easier to maintain

Once you have the Acknowledgements User Page up and running...

  • 1. Please double check every page for employees with nicknames
  • 2. Remove the nickname/redirect for all employees that are not authors of any rules
  • 3. Remove the nickname/redirect for employees that are authors of 5 or less rules
  • 4. Fix the author links on each of the 'less than 5' rules per employee (add @tiagov8 as the reviewer)
  • 5. Send here an updated list of employees with nicknames
  • 6. Go for option 1 (as per above) for /tom

@tiagov8
Copy link
Member

tiagov8 commented Oct 10, 2023

PS. I've found a mention in this Wiki about nicknames and changed it to a "Note:" saying it's not recommeded.

https://github.com/SSWConsulting/SSW.People.Profiles/wiki/3.-Updating-CRM#name-widget

@tiagov8
Copy link
Member

tiagov8 commented Oct 27, 2023

cc @tomek-i

@JackDevAU
Copy link
Member

Closing and moving the new task to: #562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants