You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello folks, I'm playing around with the experimental feature of custom rewrites.
I add this to my website to create a sort of URL shortener. There's one rewrite right now that redirects https://sospedra.me/r/rjpr to a Spotify playlist.
The rewrites do a route masking. So you don't see where have you been redirected. I don' think this is a good idea.
If you open the rewrite with an iOS device (iPhone/iPad) it'll break mysteriously because instead of going to the Spotify playlist. It's gonna mess up the domain and path and redirects to https://sospedra.me/playlist/id-id-id. Which of course doesn't exist.
It works in my local machine both dev and prod env. It goes crazy only when deployed. The masking is consistent tho.
Am I doing something wrong?
Did we find an iOS bug?
Is the masking the intended behaviour of next.js rewrites?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks, I'm playing around with the experimental feature of custom rewrites.
I add this to my website to create a sort of URL shortener. There's one rewrite right now that redirects https://sospedra.me/r/rjpr to a Spotify playlist.
I noticed a few interesting things:
https://sospedra.me/playlist/id-id-id
. Which of course doesn't exist.dev
andprod
env. It goes crazy only when deployed. The masking is consistent tho.Am I doing something wrong?
Did we find an iOS bug?
Is the masking the intended behaviour of next.js rewrites?
Thanks all!
Beta Was this translation helpful? Give feedback.
All reactions