question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deep linking appears to be broken when building with a --public-url and useBrowserHistory: true,

See original GitHub issue

Hello,

I have the following project: https://github.com/nulogy/design-system

I am deploying my project to Github pages using the /docs in master branch strategy.

In order to achieve this I specify the --out and --public-url in my build script in package json:

"scripts": {
    "start": "catalog start",
    "build": "catalog build --out docs/ --public-url /design-system"
  },

I also have useBrowserHistory: true specified in my catalog config.

Now when I run in dev mode using yarn start everything is fine. I can visit either http://localhost:4000/ or a sub-page http://localhost:4000/foundation/principles for example with no problem. I can hit refresh on either of these pages and everything works.

When I build and deploy however the deep links are broken. I can visit https://nulogy.github.io/design-system/ just fine, but if I deep link to (or refresh on) https://nulogy.github.io/design-system/foundation/principles I get a 404:

screen shot 2018-04-17 at 9 18 30 pm

It seems like there may be a misconfiguration in React Router?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jerstuckicommented, May 7, 2018
1reaction
jerstuckicommented, Apr 18, 2018

Yes, unfortunately GH Pages doesn’t support this. We switched from GH pages to Netlify a while ago for this reason (amongst others). You can also host on now, Surge, or any other web server that you can configure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Your Deep Links Might Be Broken: Web Intents and Android 12
Step 1 - Update the Android Manifest. First we must update all intent filters that can respond to an HTTP link with the...
Read more >
React Native deep linking is not working on real device
I am using gmail and gmail supports deep linking. When I change the link to an http address it works properly. It looks...
Read more >
What is deep linking and why are deep links important? | Adjust
The genius of deferred deep linking is that when that user installs and opens up the app, they can still be sent to...
Read more >
Everything a developer needs to know about deep linking
Deferred deep linking is just the process of using data the first time the app opens after a user installs to retrieve the...
Read more >
Deep Linking Configuration - Oracle Help Center
Using the deep linking feature, system administrators can provide URLs to users that ... https://taleo.taleo.net/enterprise/publicurl/viewRequisition?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found