this post was submitted on 07 Dec 2024
19 points (88.0% liked)

Firefox

18055 readers
42 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 5 years ago
MODERATORS
 

When I enable this, it redirects to piokok.com/profile/profile/wildcard. I'm not sure how the second profile is added and thus how to prevent it.

top 6 comments
sorted by: hot top controversial new old
[–] tkw8@lemm.ee 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I'm unclear where you're redirecting from. If you're looking to redirect from Instagram profile pages to Piokok profile pages, then you'd want something like:

  • Example URL: https://www.instagram.com/linustorvalds
  • Include Pattern: https://www.instagram.com/*
  • Redirect to: https://www.piokok.com/profile$1
  • Choose Wildcard
  • Description: Redirect instagram profiles to Piokok profiles

Edit: for some reason I can't seem to remove the trailing / from www.instagram.com* You don't want the last backslash in that line. Nothing inbetween com*.

[–] sabreW4K3@lazysoci.al 2 points 2 weeks ago

Thank you so much. It was actually redirecting from piokok as LibRedirect was already redirecting from Instagram, but got it sorted with the RegEx.

[–] Karyoplasma@discuss.tchncs.de 2 points 2 weeks ago (1 children)

Try putting the type to RegEx and use this pattern: https:\/\/piokok\.com\/(?!profile\/)(.*)

[–] sabreW4K3@lazysoci.al 1 points 2 weeks ago

Perfect, thank you!

[–] LWD@lemm.ee 1 points 2 weeks ago (1 children)

I see the problem: [anything] after the website domain is redirected to profile/[anything]. Imagine running that redirect repeatedly. It will keep on adding "profile" to the beginning. To stop it, you have to make sure the URL after the domain doesn't start with "profile", otherwise you're in danger of a loop.

[–] sabreW4K3@lazysoci.al 1 points 2 weeks ago

I've got https://www.piokok.com/profile/* in the excluded patterns, but it's not observing it.