marudor / bahn.expert

https://bahn.expert

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoHeader variable is not recognized in Regional-URL view

floriandrott opened this issue · comments

Describe the bug
The Regional view is not recognizing in the URL the "NoHeader" variable. Setting "NoHeader" to 1 or 0 does not take any affect.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://bahn.expert/regional/N%C3%BCrnberg-Schweinau
  2. Modify the URL to https://bahn.expert/regional/N%C3%BCrnberg-Schweinau?noHeader=1
  3. Reload page
  4. Header is still displayed

Expected behavior
Header is not shown anymore.

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome
  • Version latest

Additional context
It seems like that in

<RegionalRoutes />
the functionality is missing compared to
{!noHeader && <Header />}