Comments (4)
Hi there. Thanks for reporting, but we will need to clarify exactly what the problem is before we can accept this issue.
I'm going to attempt to rephrase the issue, please tell me if this is correct.
"I want pwa-kit to parse default SFRA urls (for example, those that include .html in the URL path, which in SFRA include categories and products)."
Is this an accurate rephrasing of your question?
If "yes", then we have considered this. Not sure when it will be fixed, but @natemarcus and I can discuss priority and follow up
I want to be clear on one important point: SFRA urls are highly configurable, so capturing all of the different potential URL permutations will ultimately require an extra API call. For this reason, our internal guidance for customers with highly customized URL schemas is that they change their URL structure because the cost of not doing so will be latency and slightly degraded site performance from these extra API calls
from pwa-kit.
To answer the question "is it possible to use .html in a pwa-kit URL path?" (If this is your question), then the answer is yes.
You need to modify the routes.jsx file to achieve this.
You can change this line
https://github.com/SalesforceCommerceCloud/pwa-kit/blob/develop/packages/template-retail-react-app/app/routes.jsx#L86
To the following if you want a product detail URL that ends with .html
path: '/product/:productId.html',
Or something close to this
from pwa-kit.
Hi @bfeister
In SFRA we are extending the functionality of models & scripts of base files, likewise, can we extend the functionality of pwa-kit base-files/code.
from pwa-kit.
@SushmithaA18 it sounds like you're a very early in your exploration and journey with the pwa kit project. We are glad you're here, I'm reaching out!
The very short answer to your question is, yes, absolutely the project is extensible. In many ways, more so than SFRA.
GitHub issues (where we are having this conversation now) is a place for bug reports, not really for questions.
The good news is we have multiple channels for asking questions:
Please follow up there with questions, I'm going to close this issues since GitHub is not the place for the beginning of your journey in learning the platform
from pwa-kit.
Related Issues (20)
- [FEATURE] Normalize `request.ip` and `request.ips` on MRT
- [FEATURE] Add an "echo" endpoint to the default app that responds with the details of the request HOT 2
- [BUG] Cannot read properties of undefined (reading 'unshift') HOT 2
- [FEATURE] Use Cache Control directive `stale-while-revalidate` in default caching headers HOT 1
- [BUG] withReactQuery not getting dependent querys HOT 2
- [BUG] Jest tests throw invalid parameter warning HOT 2
- [BUG] - operation not permitted HOT 1
- [BUG] Support Non-ASCII characters in HTTP Request Header Values HOT 2
- [FEATURE] Add support for hi-res / medium images to image gallery HOT 2
- [BUG] v3.5 - Duplicate subpath in request to get oauth token HOT 1
- [FEATURE] Add Sitemap handling HOT 2
- [FEATURE] Shopper Context Integration
- [BUG]Out of stock products should also be considered as unavailable products and be removed from cart and checkout page HOT 1
- [BUG] Seo component not setting keywords meta tag HOT 3
- [BUG] Cannot use import statement outside a module HOT 8
- [BUG] Missing onContextChange callback for version 2.8 HOT 1
- [FEATURE] Allow multiple MRT environments to share a single domain
- [FEATURE] Support Maintenance Mode 🚧
- [BUG] Custom parameters not taking into account for cache invalidation HOT 2
- [FEATURE] Identify traffic coming from MRT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwa-kit.