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

Except favicon.ico segment when favicon.ico does not exist #51470

Open
wants to merge 3 commits into
base: canary
Choose a base branch
from

Conversation

dongwonnn
Copy link
Contributor

@dongwonnn dongwonnn commented Jun 18, 2023

What?

If the first path of the website starts with a dynamic router (e.g., like app-dir-i18n-routing example) and there is no favicon.ico, prevent the browser-provided favicon.ico from being captured as a segment.

Add a case for dynamic routers to #50795

Why?

In the app-dir-i18n-routing example, an error occurs when "favicon.ico" is stored in [lang] and passed to the getDictionary function. An error log is captured and unnecessary pages are rendered.
스크린샷 2023-06-18 오후 6 16 41

I want the favicon.ico to not be captured as a segment and to have the same behavior as #50795.
스크린샷 2023-06-18 오후 5 52 01

How?

Added the case where the pathnamame is favicon.ico to skipDynamic option.

Fixes #46918

@vercel-spaces vercel-spaces bot requested a review from huozhi June 18, 2023 08:53
@dongwonnn dongwonnn force-pushed the except-favicon-segment branch 4 times, most recently from adcaeea to e405cd1 Compare June 20, 2023 11:30
@dongwonnn
Copy link
Contributor Author

@timneutkens Requesting for a review please.

@VadimCpp
Copy link

Is this PR outdated?

@dongwonnn
Copy link
Contributor Author

Is this PR outdated?

Unfortunately, yes.

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

Successfully merging this pull request may close these issues.

app-dir-i18n - TypeError: dictionaries[locale] is not a function
3 participants