React-router: location.key in undefined if hash using BrowserHistory

Created on 1 Oct 2017  路  4Comments  路  Source: ReactTraining/react-router

Version

4.1.2

Hello all!

The title is pretty much self explanatory: My location.key is undefined if my url contains a hash, and doesn't Match with the path I gave (it works without the hash)

Any idea why? Is there an option I missed?

Thanks for your hard work!
Arnaud

All 4 comments

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux where there are a lot more people ready to help you out. Thanks!

Isn't it a bug though..? Will turn to Stack Overflow then. Thanks!

It is difficult to say whether it is a bug or an error without a reproducible repo, but there is no reason that what you described should happen.

Location issues should also be posted in the history repo, since that is what controls creating objects. https://github.com/ReactTraining/history/blob/master/modules/LocationUtils.js

@pshrmn Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jzimmek picture jzimmek  路  3Comments

imWildCat picture imWildCat  路  3Comments

yormi picture yormi  路  3Comments

stnwk picture stnwk  路  3Comments

maier-stefan picture maier-stefan  路  3Comments