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

fix(routes): fix nested dynamic routes path #305

Merged
merged 1 commit into from
Mar 21, 2023
Merged

fix(routes): fix nested dynamic routes path #305

merged 1 commit into from
Mar 21, 2023

Conversation

yassernasc
Copy link
Contributor

@yassernasc yassernasc commented Mar 21, 2023

Added the g regexp flag since by default only the first occurrence is replaced.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-angular-plugin
  • astro-angular
  • create-analog
  • router
  • platform
  • content

What is the current behavior?

With a route file with name route.[route-id].subroute.[subroute-id].ts, Analog produces the route route/:route-id].subroute.[subroute-id].

Issue Number: N/A

What is the new behavior?

Now Analog produces the route route/:route-id/subroute/:subroute-id correctly.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@netlify
Copy link

netlify bot commented Mar 21, 2023

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit 3e0483a
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/641a31cf81c4980008329ec0
😎 Deploy Preview https://deploy-preview-305--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 21, 2023

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit 3e0483a
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/641a31cf779d17000871983e
😎 Deploy Preview https://deploy-preview-305--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Mar 21, 2023

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit 3e0483a
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/641a31cffc83570008139be8
😎 Deploy Preview https://deploy-preview-305--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

added the g regexp flag since by default only the first occurrence is replaced.
@brandonroberts brandonroberts merged commit 8abb61c into analogjs:main Mar 21, 2023
@brandonroberts
Copy link
Member

Thanks! @allcontributors add @yassernasc for code

@allcontributors
Copy link
Contributor

@brandonroberts

I've put up a pull request to add @yassernasc! 🎉

@brandonroberts
Copy link
Member

@yassernasc this fix has been released in @analogjs/router on 0.1.0-alpha.10

@yassernasc yassernasc deleted the fix-path-from-nested-dynamic-routes branch March 22, 2023 17:19
Villanuevand pushed a commit to Villanuevand/analog that referenced this pull request Sep 12, 2023
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

Successfully merging this pull request may close these issues.

2 participants